aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ServerApplication/LibraryExplorer.xaml.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-08 16:58:52 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-08 16:58:52 -0400
commitfbd052abfc2724fcb151582746c9783d7ab8a97a (patch)
tree4b3e126d72aa53e6aa4e74c74380bdcb80bc412c /MediaBrowser.ServerApplication/LibraryExplorer.xaml.cs
parenta0dfbdfd70fe85fca64b341b6fe30708e9a9ebe9 (diff)
removed local trailers and special features from memory
Diffstat (limited to 'MediaBrowser.ServerApplication/LibraryExplorer.xaml.cs')
-rw-r--r--MediaBrowser.ServerApplication/LibraryExplorer.xaml.cs13
1 files changed, 3 insertions, 10 deletions
diff --git a/MediaBrowser.ServerApplication/LibraryExplorer.xaml.cs b/MediaBrowser.ServerApplication/LibraryExplorer.xaml.cs
index a50d451de..f7b3b27c6 100644
--- a/MediaBrowser.ServerApplication/LibraryExplorer.xaml.cs
+++ b/MediaBrowser.ServerApplication/LibraryExplorer.xaml.cs
@@ -175,16 +175,9 @@ namespace MediaBrowser.ServerApplication
{
var item = (BaseItem)(tvwLibrary.SelectedItem as TreeViewItem).Tag;
lblObjType.Content = "Type: " + item.GetType().Name;
- var trailers = item.LocalTrailers != null && item.LocalTrailers.Count > 0
- ? "\nTrailers: " +
- String.Join(Environment.NewLine, item.LocalTrailers.Select(t => t.Path))
- : "";
+
var movie = item as Movie;
- var features = movie != null && movie.SpecialFeatures != null
- ? "\nSpecial Features: " +
- string.Join(Environment.NewLine,
- movie.SpecialFeatures.Select(f => f.Path))
- : "";
+
var folder = item as Folder;
if (folder != null)
{
@@ -222,7 +215,7 @@ namespace MediaBrowser.ServerApplication
lblIndexBy.Visibility = ddlIndexBy.Visibility = ddlSortBy.Visibility = lblSortBy.Visibility = Visibility.Hidden;
}
- txtData.Text = FormatJson(_jsonSerializer.SerializeToString(item)) + trailers + features;
+ txtData.Text = FormatJson(_jsonSerializer.SerializeToString(item));
var previews = new List<PreviewItem>();
await Task.Run(() =>