mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 22:07:13 -04:00
if (string.IsNullOrWhiteSpace(result))
{ attributes.TryGetValue("channel-id", out result); }
This commit is contained in:
parent
6847cac829
commit
34171a7507
@ -298,15 +298,20 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
|
||||
|
||||
private string GetTunerChannelId(Dictionary<string, string> attributes)
|
||||
{
|
||||
string result;
|
||||
attributes.TryGetValue("tvg-id", out result);
|
||||
var values = new List<string>();
|
||||
|
||||
if (string.IsNullOrWhiteSpace(result))
|
||||
string result;
|
||||
if (attributes.TryGetValue("tvg-id", out result))
|
||||
{
|
||||
attributes.TryGetValue("channel-id", out result);
|
||||
values.Add(result);
|
||||
}
|
||||
|
||||
return result;
|
||||
if (attributes.TryGetValue("channel-id", out result))
|
||||
{
|
||||
values.Add(result);
|
||||
}
|
||||
|
||||
return values.Count == 0 ? null : string.Join("-", values.ToArray());
|
||||
}
|
||||
|
||||
private Dictionary<string, string> ParseExtInf(string line, out string remaining)
|
||||
|
@ -1,3 +1,3 @@
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("3.2.1.114")]
|
||||
[assembly: AssemblyVersion("3.2.1.115")]
|
||||
|
Loading…
Reference in New Issue
Block a user