aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2021-09-02 08:39:18 +0200
committerGitHub <noreply@github.com>2021-09-02 08:39:18 +0200
commitffef1baa2f30a0e1a5b0a0d34948ec10b2af7ff3 (patch)
treecf750373b260c96d43071e12aac1db0f3a97ba73
parentcf9c678406b3f412d70637da35ccb0e9f70c3a00 (diff)
parenta0ee16d38d79d385f967a3164e0f2b095ef5deaa (diff)
Merge pull request #6485 from markshark05/patch-1
Update M3U Channel Name Precedence
-rw-r--r--Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs b/Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs
index 16ff98a7d..d28c39e21 100644
--- a/Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs
+++ b/Emby.Server.Implementations/LiveTv/TunerHosts/M3uParser.cs
@@ -295,11 +295,11 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
}
}
- attributes.TryGetValue("tvg-name", out string name);
+ string name = nameInExtInf;
if (string.IsNullOrWhiteSpace(name))
{
- name = nameInExtInf;
+ attributes.TryGetValue("tvg-name", out name);
}
if (string.IsNullOrWhiteSpace(name))