From fbd052abfc2724fcb151582746c9783d7ab8a97a Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 8 May 2013 16:58:52 -0400 Subject: removed local trailers and special features from memory --- MediaBrowser.ServerApplication/LibraryExplorer.xaml.cs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'MediaBrowser.ServerApplication') 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(); await Task.Run(() => -- cgit v1.2.3