aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ServerApplication/LibraryExplorer.xaml.cs
diff options
context:
space:
mode:
authorEric Reed <ebr@mediabrowser3.com>2014-01-29 12:22:53 -0500
committerEric Reed <ebr@mediabrowser3.com>2014-01-29 12:22:53 -0500
commitab5145bcd794ee579e0064c9c0f9d15b13f72fb4 (patch)
treed68cdabe4302cc4dda8194ee840060f48d9fa714 /MediaBrowser.ServerApplication/LibraryExplorer.xaml.cs
parent1f31c8dbfca9ca9134d9ee779256c435f913689b (diff)
parentc0f606683a045e463f518ec466b9fc9a85f8d4fd (diff)
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.ServerApplication/LibraryExplorer.xaml.cs')
-rw-r--r--MediaBrowser.ServerApplication/LibraryExplorer.xaml.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/MediaBrowser.ServerApplication/LibraryExplorer.xaml.cs b/MediaBrowser.ServerApplication/LibraryExplorer.xaml.cs
index 1a5d73e6b..51d661518 100644
--- a/MediaBrowser.ServerApplication/LibraryExplorer.xaml.cs
+++ b/MediaBrowser.ServerApplication/LibraryExplorer.xaml.cs
@@ -5,6 +5,7 @@ using MediaBrowser.Controller.Entities.TV;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Localization;
using MediaBrowser.Controller.Persistence;
+using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Logging;
using MediaBrowser.Model.Querying;
@@ -220,14 +221,14 @@ namespace MediaBrowser.ServerApplication
if (item is IHasMediaStreams)
{
var mediaStreams = _itemRepository.GetMediaStreams(new MediaStreamQuery
- {
+ {
ItemId = item.Id
}).ToList();
if (mediaStreams.Count > 0)
{
- json += "\n\nMedia Streams:\n\n"+FormatJson(_jsonSerializer.SerializeToString(mediaStreams));
+ json += "\n\nMedia Streams:\n\n" + FormatJson(_jsonSerializer.SerializeToString(mediaStreams));
}
}
@@ -356,7 +357,7 @@ namespace MediaBrowser.ServerApplication
var item = ((TreeViewItem)tvwLibrary.SelectedItem).Tag as BaseItem;
if (item != null)
{
- item.RefreshMetadata(CancellationToken.None, forceRefresh: cbxForce.IsChecked.Value);
+ item.RefreshMetadata(new MetadataRefreshOptions { ReplaceAllMetadata = cbxForce.IsChecked.Value }, CancellationToken.None);
tvwLibrary_SelectedItemChanged(this, null);
}
}