From 233f9cb238201c7dfdb060b718ff635947161f30 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 15 May 2016 21:22:22 -0400 Subject: update shared components --- MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'MediaBrowser.Server.Implementations/LiveTv') diff --git a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs index 99ab07648d..9251ccb9ee 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 GetEmbyRecordings(RecordingQuery query, User user) { + if (user == null || (query.IsInProgress ?? false)) + { + return new QueryResult(); + } + 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(); } - 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); -- cgit v1.2.3