mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -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)
|
private string GetTunerChannelId(Dictionary<string, string> attributes)
|
||||||
{
|
{
|
||||||
string result;
|
var values = new List<string>();
|
||||||
attributes.TryGetValue("tvg-id", out result);
|
|
||||||
|
|
||||||
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)
|
private Dictionary<string, string> ParseExtInf(string line, out string remaining)
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyVersion("3.2.1.114")]
|
[assembly: AssemblyVersion("3.2.1.115")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user