mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
dummy up m3u channel numbers
This commit is contained in:
parent
819efd2a7d
commit
39e8e3cbe7
@ -76,6 +76,7 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
|
|||||||
var channels = new List<M3UChannel>();
|
var channels = new List<M3UChannel>();
|
||||||
string line;
|
string line;
|
||||||
string extInf = "";
|
string extInf = "";
|
||||||
|
|
||||||
while ((line = reader.ReadLine()) != null)
|
while ((line = reader.ReadLine()) != null)
|
||||||
{
|
{
|
||||||
line = line.Trim();
|
line = line.Trim();
|
||||||
@ -111,6 +112,18 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
|
|||||||
extInf = "";
|
extInf = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var startingNumber = 1;
|
||||||
|
foreach (var channel in channels)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrWhiteSpace(channel.Number))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
channel.Number = startingNumber.ToString(CultureInfo.InvariantCulture);
|
||||||
|
startingNumber++;
|
||||||
|
}
|
||||||
return channels;
|
return channels;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user