mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Fall back to using "logo" attrib if "tvg-logo" is mssing in M3U-tuner (#9475)
Co-authored-by: gitteric <you@example.com>
This commit is contained in:
parent
b7fe81551f
commit
af611367c1
@ -122,9 +122,13 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
|
|||||||
var attributes = ParseExtInf(extInf, out string remaining);
|
var attributes = ParseExtInf(extInf, out string remaining);
|
||||||
extInf = remaining;
|
extInf = remaining;
|
||||||
|
|
||||||
if (attributes.TryGetValue("tvg-logo", out string value))
|
if (attributes.TryGetValue("tvg-logo", out string tvgLogo))
|
||||||
{
|
{
|
||||||
channel.ImageUrl = value;
|
channel.ImageUrl = tvgLogo;
|
||||||
|
}
|
||||||
|
else if (attributes.TryGetValue("logo", out string logo))
|
||||||
|
{
|
||||||
|
channel.ImageUrl = logo;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (attributes.TryGetValue("group-title", out string groupTitle))
|
if (attributes.TryGetValue("group-title", out string groupTitle))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user