mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-21 05:00:39 +02:00
update polymer
This commit is contained in:
parent
da837ffbf0
commit
6ed2a85f45
|
@ -10,11 +10,6 @@ namespace MediaBrowser.Api.Sync
|
||||||
{
|
{
|
||||||
List<SyncJobOption> options = new List<SyncJobOption>();
|
List<SyncJobOption> options = new List<SyncJobOption>();
|
||||||
|
|
||||||
if (items.Count > 1)
|
|
||||||
{
|
|
||||||
options.Add(SyncJobOption.Name);
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach (BaseItemDto item in items)
|
foreach (BaseItemDto item in items)
|
||||||
{
|
{
|
||||||
if (item.SupportsSync ?? false)
|
if (item.SupportsSync ?? false)
|
||||||
|
@ -65,7 +60,6 @@ namespace MediaBrowser.Api.Sync
|
||||||
{
|
{
|
||||||
List<SyncJobOption> options = new List<SyncJobOption>();
|
List<SyncJobOption> options = new List<SyncJobOption>();
|
||||||
|
|
||||||
options.Add(SyncJobOption.Name);
|
|
||||||
options.Add(SyncJobOption.Quality);
|
options.Add(SyncJobOption.Quality);
|
||||||
options.Add(SyncJobOption.Profile);
|
options.Add(SyncJobOption.Profile);
|
||||||
options.Add(SyncJobOption.UnwatchedOnly);
|
options.Add(SyncJobOption.UnwatchedOnly);
|
||||||
|
|
|
@ -337,6 +337,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings
|
||||||
(details.showType ?? "No ShowType") == "TV Movie" ||
|
(details.showType ?? "No ShowType") == "TV Movie" ||
|
||||||
(details.showType ?? "No ShowType") == "Short Film",
|
(details.showType ?? "No ShowType") == "Short Film",
|
||||||
IsPremiere = false,
|
IsPremiere = false,
|
||||||
|
ShowId = programInfo.programID
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(details.originalAirDate))
|
if (!string.IsNullOrWhiteSpace(details.originalAirDate))
|
||||||
|
@ -448,8 +449,9 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings
|
||||||
_logger.Info("Headend: " + headend.headend);
|
_logger.Info("Headend: " + headend.headend);
|
||||||
foreach (ScheduleDirect.Lineup lineup in headend.lineups)
|
foreach (ScheduleDirect.Lineup lineup in headend.lineups)
|
||||||
{
|
{
|
||||||
_logger.Info("Headend: " + lineup.uri.Substring(18));
|
_logger.Info("Headend: " + lineup.uri);
|
||||||
lineups.Add(new NameIdPair()
|
|
||||||
|
lineups.Add(new NameIdPair
|
||||||
{
|
{
|
||||||
Name = string.IsNullOrWhiteSpace(lineup.name) ? lineup.lineup : lineup.name,
|
Name = string.IsNullOrWhiteSpace(lineup.name) ? lineup.lineup : lineup.name,
|
||||||
Id = lineup.uri.Substring(18)
|
Id = lineup.uri.Substring(18)
|
||||||
|
|
|
@ -126,7 +126,7 @@ namespace MediaBrowser.Server.Implementations.Sync
|
||||||
|
|
||||||
if (string.IsNullOrWhiteSpace(request.Name))
|
if (string.IsNullOrWhiteSpace(request.Name))
|
||||||
{
|
{
|
||||||
throw new ArgumentException("Please supply a name for the sync job.");
|
request.Name = DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString();
|
||||||
}
|
}
|
||||||
|
|
||||||
var target = GetSyncTargets(request.UserId)
|
var target = GetSyncTargets(request.UserId)
|
||||||
|
@ -217,7 +217,8 @@ namespace MediaBrowser.Server.Implementations.Sync
|
||||||
}, _logger);
|
}, _logger);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (returnResult.JobItems.Any (i => i.Status == SyncJobItemStatus.Queued || i.Status == SyncJobItemStatus.Converting)) {
|
if (returnResult.JobItems.Any(i => i.Status == SyncJobItemStatus.Queued || i.Status == SyncJobItemStatus.Converting))
|
||||||
|
{
|
||||||
_taskManager.QueueScheduledTask<SyncConvertScheduledTask>();
|
_taskManager.QueueScheduledTask<SyncConvertScheduledTask>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue