update live tv images

pull/1154/head
Luke Pulverenti 8 years ago
parent b786cca9da
commit 1c93fcef01

@ -48,22 +48,19 @@ namespace MediaBrowser.Controller.LiveTv
return list; return list;
} }
private static string EmbyServiceName = "Emby";
public override double? GetDefaultPrimaryImageAspectRatio() public override double? GetDefaultPrimaryImageAspectRatio()
{ {
if (IsMovie) var serviceName = ServiceName;
if (!IsMovie && !string.Equals(serviceName, EmbyServiceName, StringComparison.OrdinalIgnoreCase) || !string.IsNullOrWhiteSpace(serviceName))
{ {
double value = 2; return null;
value /= 3;
return value;
} }
else
{
double value = 2;
value /= 3;
return value; double value = 2;
} value /= 3;
return value;
} }
[IgnoreDataMember] [IgnoreDataMember]
@ -227,7 +224,7 @@ namespace MediaBrowser.Controller.LiveTv
public LiveTvProgramLookupInfo GetLookupInfo() public LiveTvProgramLookupInfo GetLookupInfo()
{ {
var info = GetItemLookupInfo<LiveTvProgramLookupInfo>(); var info = GetItemLookupInfo<LiveTvProgramLookupInfo>();
info.IsMovie = IsMovie; info.IsMovie = IsMovie;
return info; return info;
} }

Loading…
Cancel
Save