Hi,
I’ve made some improvements to the ChannelSelection.py file located at /usr/lib/enigma2/python/Screens.
The Issue:
In the "Satellites" section, when opening the "New" folder (which contains new services), if the folder is empty, pressing the "OK" button would launch an invalid service, causing the current service to stop.
Additionally, pressing the "Info" button would display an empty EPG Selection screen without the service name (as shown in the attached image).
Changes Made:
I modified the showEPGList and channelSelected functions in the channel selection code to add additional checks using if ref and ref.valid(): instead of just if ref:.
What Does This Mean?
-
Before the Change: The code was only checking if there was a reference to a selected service (ref), without confirming whether that reference was valid (i.e., whether it pointed to an actually available service).
This could lead to launching an unavailable service or opening the EPG list for an invalid service, causing unexpected behavior.
-
After the Change: The additional check ref.valid() ensures that the reference (channel or service) is valid and available before attempting to launch it (in channelSelected) or open the EPG list (in showEPGList).
Best regards.