aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/LiveTv/LiveTvProgram.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller/LiveTv/LiveTvProgram.cs')
-rw-r--r--MediaBrowser.Controller/LiveTv/LiveTvProgram.cs31
1 files changed, 23 insertions, 8 deletions
diff --git a/MediaBrowser.Controller/LiveTv/LiveTvProgram.cs b/MediaBrowser.Controller/LiveTv/LiveTvProgram.cs
index 1607dbcba..1c1637330 100644
--- a/MediaBrowser.Controller/LiveTv/LiveTvProgram.cs
+++ b/MediaBrowser.Controller/LiveTv/LiveTvProgram.cs
@@ -47,19 +47,31 @@ namespace MediaBrowser.Controller.LiveTv
return list;
}
- private static string EmbyServiceName = "Emby";
- public override double? GetDefaultPrimaryImageAspectRatio()
+ public static double? GetDefaultPrimaryImageAspectRatio(IHasProgramAttributes item)
{
- var serviceName = ServiceName;
- if (!IsMovie && !string.Equals(serviceName, EmbyServiceName, StringComparison.OrdinalIgnoreCase) || !string.IsNullOrWhiteSpace(serviceName))
+ var serviceName = item.ServiceName;
+ if (!item.IsMovie
+ && !string.Equals(serviceName, EmbyServiceName, StringComparison.OrdinalIgnoreCase)
+ && !string.Equals(serviceName, "Next Pvr", StringComparison.OrdinalIgnoreCase))
{
- return null;
+ double value = 16;
+ value /= 9;
+
+ return value;
}
+ else
+ {
+ double value = 2;
+ value /= 3;
- double value = 2;
- value /= 3;
+ return value;
+ }
+ }
- return value;
+ private static string EmbyServiceName = "Emby";
+ public override double? GetDefaultPrimaryImageAspectRatio()
+ {
+ return GetDefaultPrimaryImageAspectRatio(this);
}
[IgnoreDataMember]
@@ -88,6 +100,9 @@ namespace MediaBrowser.Controller.LiveTv
[IgnoreDataMember]
public string EpisodeTitle { get; set; }
+ [IgnoreDataMember]
+ public string ShowId { get; set; }
+
/// <summary>
/// Gets or sets a value indicating whether this instance is movie.
/// </summary>