redesign series timer edit screen
This commit is contained in:
parent
c99fa9a651
commit
2d09c187cc
|
@ -167,6 +167,21 @@ namespace Emby.Server.Implementations.LiveTv
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
image = librarySeries.GetImageInfo(ImageType.Backdrop, 0);
|
||||||
|
if (image != null)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
dto.ParentBackdropImageTags = new List<string>
|
||||||
|
{
|
||||||
|
_imageProcessor.GetImageCacheTag(librarySeries, image)
|
||||||
|
};
|
||||||
|
dto.ParentBackdropItemId = librarySeries.Id.ToString("N");
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(programSeriesId))
|
if (!string.IsNullOrWhiteSpace(programSeriesId))
|
||||||
|
@ -194,6 +209,25 @@ namespace Emby.Server.Implementations.LiveTv
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dto.ParentBackdropImageTags == null || dto.ParentBackdropImageTags.Count == 0)
|
||||||
|
{
|
||||||
|
image = program.GetImageInfo(ImageType.Backdrop, 0);
|
||||||
|
if (image != null)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
dto.ParentBackdropImageTags = new List<string>
|
||||||
|
{
|
||||||
|
_imageProcessor.GetImageCacheTag(program, image)
|
||||||
|
};
|
||||||
|
dto.ParentBackdropItemId = program.Id.ToString("N");
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -223,6 +257,21 @@ namespace Emby.Server.Implementations.LiveTv
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
image = librarySeries.GetImageInfo(ImageType.Backdrop, 0);
|
||||||
|
if (image != null)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
dto.ParentBackdropImageTags = new List<string>
|
||||||
|
{
|
||||||
|
_imageProcessor.GetImageCacheTag(librarySeries, image)
|
||||||
|
};
|
||||||
|
dto.ParentBackdropItemId = librarySeries.Id.ToString("N");
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(programSeriesId))
|
if (!string.IsNullOrWhiteSpace(programSeriesId))
|
||||||
|
@ -250,6 +299,25 @@ namespace Emby.Server.Implementations.LiveTv
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dto.ParentBackdropImageTags == null || dto.ParentBackdropImageTags.Count == 0)
|
||||||
|
{
|
||||||
|
image = program.GetImageInfo(ImageType.Backdrop, 0);
|
||||||
|
if (image != null)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
dto.ParentBackdropImageTags = new List<string>
|
||||||
|
{
|
||||||
|
_imageProcessor.GetImageCacheTag(program, image)
|
||||||
|
};
|
||||||
|
dto.ParentBackdropItemId = program.Id.ToString("N");
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
using MediaBrowser.Model.Dto;
|
using MediaBrowser.Model.Dto;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace MediaBrowser.Model.LiveTv
|
namespace MediaBrowser.Model.LiveTv
|
||||||
{
|
{
|
||||||
|
@ -102,6 +103,18 @@ namespace MediaBrowser.Model.LiveTv
|
||||||
/// <value><c>true</c> if this instance is pre padding required; otherwise, <c>false</c>.</value>
|
/// <value><c>true</c> if this instance is pre padding required; otherwise, <c>false</c>.</value>
|
||||||
public bool IsPrePaddingRequired { get; set; }
|
public bool IsPrePaddingRequired { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// If the item does not have any backdrops, this will hold the Id of the Parent that has one.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The parent backdrop item id.</value>
|
||||||
|
public string ParentBackdropItemId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the parent backdrop image tags.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The parent backdrop image tags.</value>
|
||||||
|
public List<string> ParentBackdropImageTags { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether this instance is post padding required.
|
/// Gets or sets a value indicating whether this instance is post padding required.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -180,6 +180,9 @@
|
||||||
<Content Include="dashboard-ui\scripts\livetvschedule.js">
|
<Content Include="dashboard-ui\scripts\livetvschedule.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="dashboard-ui\scripts\livetvseriestimers.js">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
<Content Include="dashboard-ui\scripts\userpasswordpage.js">
|
<Content Include="dashboard-ui\scripts\userpasswordpage.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
@ -714,9 +717,6 @@
|
||||||
<Content Include="dashboard-ui\reports.html">
|
<Content Include="dashboard-ui\reports.html">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="dashboard-ui\livetvseriestimer.html">
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
</Content>
|
|
||||||
<Content Include="dashboard-ui\livetvsettings.html">
|
<Content Include="dashboard-ui\livetvsettings.html">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
@ -897,9 +897,6 @@
|
||||||
<Content Include="dashboard-ui\scripts\livetvchannel.js">
|
<Content Include="dashboard-ui\scripts\livetvchannel.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="dashboard-ui\scripts\livetvseriestimer.js">
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
</Content>
|
|
||||||
<Content Include="dashboard-ui\scripts\livetvsettings.js">
|
<Content Include="dashboard-ui\scripts\livetvsettings.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
@ -942,9 +939,6 @@
|
||||||
<Content Include="dashboard-ui\scripts\episodes.js">
|
<Content Include="dashboard-ui\scripts\episodes.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="dashboard-ui\scripts\livetvseriestimers.js">
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
</Content>
|
|
||||||
<Content Include="dashboard-ui\scripts\livetvsuggested.js">
|
<Content Include="dashboard-ui\scripts\livetvsuggested.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user