aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/LiveTv
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-03-31 15:50:55 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-03-31 15:50:55 -0400
commit8d1ca8ca2718b61b6167ffd6dfe61af0c75c7257 (patch)
tree694555d9255acdcaab83a14064e2dfaf7c341631 /Emby.Server.Implementations/LiveTv
parent06394d1a9f12d8a2689d6f071a6e030cbc715659 (diff)
improve direct play to transcoding fallback
Diffstat (limited to 'Emby.Server.Implementations/LiveTv')
-rw-r--r--Emby.Server.Implementations/LiveTv/Listings/XmlTvListingsProvider.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/LiveTv/Listings/XmlTvListingsProvider.cs b/Emby.Server.Implementations/LiveTv/Listings/XmlTvListingsProvider.cs
index 21c4006a6..fc0a826b4 100644
--- a/Emby.Server.Implementations/LiveTv/Listings/XmlTvListingsProvider.cs
+++ b/Emby.Server.Implementations/LiveTv/Listings/XmlTvListingsProvider.cs
@@ -268,12 +268,12 @@ namespace Emby.Server.Implementations.LiveTv.Listings
var results = reader.GetChannels();
// Should this method be async?
- return results.Select(c => new ChannelInfo()
+ return results.Select(c => new ChannelInfo
{
Id = c.Id,
Name = c.DisplayName,
ImageUrl = c.Icon != null && !String.IsNullOrEmpty(c.Icon.Source) ? c.Icon.Source : null,
- Number = c.Id
+ Number = string.IsNullOrWhiteSpace(c.Number) ? c.Id : c.Number
}).ToList();
}