3.2.30.21

This commit is contained in:
Luke Pulverenti
2017-09-15 02:32:20 -04:00
parent ce26d502a4
commit 106575e443
7 changed files with 149 additions and 142 deletions

View File

@@ -47,11 +47,10 @@ 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))
{
double value = 16;
value /= 9;
@@ -67,6 +66,12 @@ namespace MediaBrowser.Controller.LiveTv
}
}
private static string EmbyServiceName = "Emby";
public override double? GetDefaultPrimaryImageAspectRatio()
{
return GetDefaultPrimaryImageAspectRatio(this);
}
[IgnoreDataMember]
public override SourceType SourceType
{