mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-01-18 13:22:04 +01:00
- 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:
@@ -1471,15 +1471,21 @@ namespace ChanSort.Ui
|
||||
var filter = list.VisibleColumnFieldNames;
|
||||
if (filter != null)
|
||||
{
|
||||
if (!filter.Contains(col.FieldName)) // force-hide without further checks
|
||||
return false;
|
||||
if (filter.Contains("+" + col.FieldName)) // force-show without further checks
|
||||
return true;
|
||||
if (!filter.Contains(col.FieldName)) // force-hide without further checks
|
||||
return false;
|
||||
}
|
||||
else if (col.Tag is bool originalVisible && !originalVisible)
|
||||
return false;
|
||||
|
||||
// find out what sort of channels the list may contain. If a mask yields all bits 0, it means that the list may contain everything
|
||||
var source = list.SignalSource;
|
||||
if ((source & SignalSource.MaskAnalogDigital) == 0)
|
||||
source |= SignalSource.MaskAnalogDigital;
|
||||
if ((source & SignalSource.MaskAntennaCableSat) == 0)
|
||||
source |= SignalSource.MaskAntennaCableSat;
|
||||
|
||||
if (col == this.colSource) return list.IsMixedSourceFavoritesList;
|
||||
if (col == this.colPrNr) return this.subListIndex > 0;
|
||||
if (col == this.colChannelOrTransponder) return (source & SignalSource.Sat) == 0;
|
||||
|
||||
Reference in New Issue
Block a user