|
@@ -19,6 +19,7 @@ using System.Threading.Tasks;
|
|
using CommonIO;
|
|
using CommonIO;
|
|
using MediaBrowser.Api.Playback.Progressive;
|
|
using MediaBrowser.Api.Playback.Progressive;
|
|
using MediaBrowser.Controller.Configuration;
|
|
using MediaBrowser.Controller.Configuration;
|
|
|
|
+using MediaBrowser.Controller.Entities.TV;
|
|
using MediaBrowser.Server.Implementations.LiveTv.EmbyTV;
|
|
using MediaBrowser.Server.Implementations.LiveTv.EmbyTV;
|
|
|
|
|
|
namespace MediaBrowser.Api.LiveTv
|
|
namespace MediaBrowser.Api.LiveTv
|
|
@@ -390,6 +391,7 @@ namespace MediaBrowser.Api.LiveTv
|
|
public bool? EnableUserData { get; set; }
|
|
public bool? EnableUserData { get; set; }
|
|
|
|
|
|
public string SeriesTimerId { get; set; }
|
|
public string SeriesTimerId { get; set; }
|
|
|
|
+ public string LibrarySeriesId { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// Fields to return within the items, in addition to basic information
|
|
/// Fields to return within the items, in addition to basic information
|
|
@@ -990,6 +992,17 @@ namespace MediaBrowser.Api.LiveTv
|
|
query.SeriesTimerId = request.SeriesTimerId;
|
|
query.SeriesTimerId = request.SeriesTimerId;
|
|
query.Genres = (request.Genres ?? String.Empty).Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
|
|
query.Genres = (request.Genres ?? String.Empty).Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
|
|
|
|
|
|
|
|
+ if (!string.IsNullOrWhiteSpace(request.LibrarySeriesId))
|
|
|
|
+ {
|
|
|
|
+ query.IsSeries = true;
|
|
|
|
+
|
|
|
|
+ var series = _libraryManager.GetItemById(request.LibrarySeriesId) as Series;
|
|
|
|
+ if (series != null)
|
|
|
|
+ {
|
|
|
|
+ query.Name = series.Name;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
var result = await _liveTvManager.GetPrograms(query, GetDtoOptions(request), CancellationToken.None).ConfigureAwait(false);
|
|
var result = await _liveTvManager.GetPrograms(query, GetDtoOptions(request), CancellationToken.None).ConfigureAwait(false);
|
|
|
|
|
|
return ToOptimizedResult(result);
|
|
return ToOptimizedResult(result);
|