aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/LiveTv
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-05-16 01:48:30 -0400
committerLuke <luke.pulverenti@gmail.com>2016-05-16 01:48:30 -0400
commitb2d9fe267628920da83b37a85cbbec4c9e2199ea (patch)
tree3592504189755aa52b297744f2b315aee90b4d46 /MediaBrowser.Server.Implementations/LiveTv
parent862f681f7aa94b386bb36caa8ba037f900e6889f (diff)
parent82ad4941894b3535e773c11cbef08986c4274a02 (diff)
Merge pull request #1739 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Server.Implementations/LiveTv')
-rw-r--r--MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs13
1 files changed, 7 insertions, 6 deletions
diff --git a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
index 99ab07648..9251ccb9e 100644
--- a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
+++ b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
@@ -1385,6 +1385,11 @@ namespace MediaBrowser.Server.Implementations.LiveTv
private QueryResult<BaseItem> GetEmbyRecordings(RecordingQuery query, User user)
{
+ if (user == null || (query.IsInProgress ?? false))
+ {
+ return new QueryResult<BaseItem>();
+ }
+
var folders = EmbyTV.EmbyTV.Current.GetRecordingFolders()
.SelectMany(i => i.Locations)
.Distinct(StringComparer.OrdinalIgnoreCase)
@@ -1413,13 +1418,9 @@ namespace MediaBrowser.Server.Implementations.LiveTv
return new QueryResult<BaseItem>();
}
- if (user != null && !(query.IsInProgress ?? false))
+ if (_services.Count == 1)
{
- var initialResult = GetEmbyRecordings(query, user);
- if (initialResult.TotalRecordCount > 0)
- {
- return initialResult;
- }
+ return GetEmbyRecordings(query, user);
}
await RefreshRecordings(cancellationToken).ConfigureAwait(false);