- UHD channels using ServiceType 0x9F are now recognized as TV channels (fixes an issue with Panasonic lists where these channels did not show up and their numbers were assigned multiple times)

- ChannelList.SignalSource and DataRoot.GetChannelList(SignalSource) are now handled so that if all bits of a given Mask are left 0, the list will accept anything.
  i.e. if Tv/Radio/Data is left 0, the list can contain all of them as well as channels that have neither of the 3 bits set.
- added basic unit tests for each loader to ensure test files have the expected numbers of channels in the various sub lists
This commit is contained in:
hbeham
2019-08-29 16:57:20 +02:00
parent 8923ce4c83
commit 0cf97fe76c
86 changed files with 571965 additions and 78 deletions

View File

@@ -52,7 +52,7 @@ namespace ChanSort.Loader.Hisense2017
/// <summary>
/// This list is filled with all channels/services and serves as a holder for favorite lists 1-4
/// </summary>
private readonly ChannelList userFavList = new ChannelList(SignalSource.All, "Favorites");
private readonly ChannelList userFavList = new ChannelList(0, "Favorites");
/// <summary>
/// mapping of FavoriteList.Pid for FAV1-4 => index of the internal favorite list within userFavList (0-3)
@@ -90,7 +90,7 @@ namespace ChanSort.Loader.Hisense2017
"OriginalNetworkId",
"TransportStreamId",
"ServiceId",
"ServiceType",
//"ServiceType",
"ServiceTypeName",
"NetworkName",
"Satellite"
@@ -207,7 +207,7 @@ namespace ChanSort.Loader.Hisense2017
}
// lists for physical channel sources
var list = new ChannelList(SignalSource.All, name);
var list = new ChannelList(0, name);
list.VisibleColumnFieldNames = ColumnNames;
channelLists.Add(listId, list);
if (name.StartsWith("$"))