aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgitteric <eschewe@gmx.net>2023-03-12 16:45:48 +0100
committerGitHub <noreply@github.com>2023-03-12 09:45:48 -0600
commitaf611367c14e2d56e6346b03bda7d75ab6f04b96 (patch)
treed9ccfffd4023de5636c3d28baeefc3e93be2d333
parentb7fe81551f43b08f7991979be16bdbd1dddcb636 (diff)
Fall back to using "logo" attrib if "tvg-logo" is mssing in M3U-tuner (#9475)
Co-authored-by: gitteric <you@example.com>
-rw-r--r--Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs b/Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs
index 046be7c5c..f2020e05f 100644
--- a/Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs
+++ b/Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs
@@ -122,9 +122,13 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
var attributes = ParseExtInf(extInf, out string 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))