Closed kiddac closed 10 months ago
jbleyel on openatv has recommended a regex solution instead
if not pngname:
name = sub("uhd$|fhd$|sd$|hd$|4k$", "", name)
if name:
pngname = findPicon(name)
Maybe, but regex is slow and this is going to be called for every picon that doesn't match. You need to try in ServiceList with Picons active on an IPTV bouquet and see if you notice a pause.
You also need to strip possible spaces.
In a world of iptv would it be possible to amend the picon.py to include iptv references like sd, fhd, uhd, 4k
Currently SNP picons look for name and if ends with HD strips the HD
It would now be better if this code also incorporates other IPTV values like SD,4K, FHD, UHD to pick up more IPTV channels
Example new code.