Merge pull request #6485 from markshark05/patch-1

Update M3U Channel Name Precedence
This commit is contained in:
Claus Vium 2021-09-02 08:39:18 +02:00 committed by GitHub
commit ffef1baa2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -295,11 +295,11 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
} }
} }
attributes.TryGetValue("tvg-name", out string name); string name = nameInExtInf;
if (string.IsNullOrWhiteSpace(name)) if (string.IsNullOrWhiteSpace(name))
{ {
name = nameInExtInf; attributes.TryGetValue("tvg-name", out name);
} }
if (string.IsNullOrWhiteSpace(name)) if (string.IsNullOrWhiteSpace(name))