mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 20:08:59 +02:00
add guide data error handling
This commit is contained in:
parent
ab79129d0c
commit
3ad2703c35
1 changed files with 8 additions and 3 deletions
|
@ -349,10 +349,15 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings
|
||||||
channelNumber = channelNumber.TrimStart('0');
|
channelNumber = channelNumber.TrimStart('0');
|
||||||
|
|
||||||
_logger.Debug("Found channel: " + channelNumber + " in Schedules Direct");
|
_logger.Debug("Found channel: " + channelNumber + " in Schedules Direct");
|
||||||
var schChannel = root.stations.FirstOrDefault(item => item.stationID == map.stationID);
|
if (root.stations != null)
|
||||||
|
{
|
||||||
|
var schChannel = root.stations.FirstOrDefault(item => string.Equals(item.stationID, map.stationID, StringComparison.OrdinalIgnoreCase));
|
||||||
|
if (schChannel != null)
|
||||||
|
{
|
||||||
AddToChannelPairCache(listingsId, channelNumber, schChannel);
|
AddToChannelPairCache(listingsId, channelNumber, schChannel);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
_logger.Info("Added " + GetChannelPairCacheCount(listingsId) + " channels to the dictionary");
|
_logger.Info("Added " + GetChannelPairCacheCount(listingsId) + " channels to the dictionary");
|
||||||
|
|
||||||
foreach (ChannelInfo channel in channels)
|
foreach (ChannelInfo channel in channels)
|
||||||
|
|
Loading…
Reference in a new issue