improve direct play to transcoding fallback

This commit is contained in:
Luke Pulverenti
2017-03-31 15:50:55 -04:00
parent 06394d1a9f
commit 8d1ca8ca27
7 changed files with 50 additions and 10 deletions

View File

@@ -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();
}