mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 01:24:44 +01:00
add additional info to timer infos
This commit is contained in:
@@ -50,21 +50,40 @@ namespace MediaBrowser.Controller.LiveTv
|
||||
public static double? GetDefaultPrimaryImageAspectRatio(IHasProgramAttributes item)
|
||||
{
|
||||
var serviceName = item.ServiceName;
|
||||
if (!item.IsMovie
|
||||
&& !string.Equals(serviceName, EmbyServiceName, StringComparison.OrdinalIgnoreCase)
|
||||
&& !string.Equals(serviceName, "Next Pvr", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
double value = 16;
|
||||
value /= 9;
|
||||
|
||||
return value;
|
||||
if (item.IsMovie)
|
||||
{
|
||||
if (string.Equals(serviceName, EmbyServiceName, StringComparison.OrdinalIgnoreCase) || string.Equals(serviceName, "Next Pvr", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
double value = 2;
|
||||
value /= 3;
|
||||
|
||||
return value;
|
||||
}
|
||||
else
|
||||
{
|
||||
double value = 16;
|
||||
value /= 9;
|
||||
|
||||
return value;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
double value = 2;
|
||||
value /= 3;
|
||||
if (string.Equals(serviceName, EmbyServiceName, StringComparison.OrdinalIgnoreCase) || string.Equals(serviceName, "Next Pvr", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
double value = 2;
|
||||
value /= 3;
|
||||
|
||||
return value;
|
||||
return value;
|
||||
}
|
||||
else
|
||||
{
|
||||
double value = 16;
|
||||
value /= 9;
|
||||
|
||||
return value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user