Improvements in Channel Selection

  • 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.

  • Why don't you create an image that includes these fixes and improvements?!

    Since the DreamOS image is no longer closed source, why not do that along with updating FFmpeg and GstPlayer?!

  • Max11: you shouldn't make suggestions if you have no clue. Nothing has changed with regards to DreamOS. Core is closed source, python part is open source...

    Gruss
    Dre


    Boxen (im Einsatz): DM920, DM900, DMOne
    Developer Project Merlin - we are OpenSource

  • Andro1

    Ein kleiner Tipp :winking_face:


    Wenn du Fixes in DreamOS-Files vornimmst, ändere nicht die originalen GUI-Texte.

    Du hast vielfach die Texte auf Großschreibung am Anfang umgeändert, was zur Folge hat, dass alle User, die nicht English als Box-Sprache nutzen diese geänderten Texte nun in English angezeigt bekommen anstatt in ihrer gewählten Sprache.

    Durch deine Text-Anpassung werden diese Texte nun nicht mehr übersetzt.

    Gruß Sven (aka Dreamy)


    DM920 mit unstable OE2.5 DP
    One + Two mit DP AIO - OE2.6

  • Sven H


    Using capital letters at the beginning of titles is a common and recommended standard in UI design, as it improves legibility and lends a more professional appearance.

    Although the translation files were expected to be updated to follow this recommended style, I reverted to using lowercase letters to maintain compatibility with the existing translation files.


    Additionally, the showEPGList function was updated to include checks that ensure the selected service is valid and is neither a directory nor a marker before opening the EPG Selection screen.

    This prevents the EPG Selection screen from appearing for invalid services, directories, or markers (as shown in the attached images).

  • It does not improve anything for all users who use a different language then English as SvenH correctly explained. So, you have fixed something that very likely nobody even had an issue with but introduced a new problem.

    Gruss
    Dre


    Boxen (im Einsatz): DM920, DM900, DMOne
    Developer Project Merlin - we are OpenSource

  • Max11


    Creating custom images for each available device requires a lot of time, effort, and unfortunately, I just don’t have the time for that at the moment.

    I recommend reaching out to teams that still support DreamOS images, like Gemini Project or Dream-Elite. They have experienced developers who are better equipped to handle these kinds of tasks.


    Regarding the FFmpeg and GstPlayer updates, unfortunately, the protection mechanisms aren't what they used to be. Some plugins that were originally made exclusively for DreamOS images have been cracked and later used in open-source images.


    While the process isn’t overly complicated, it’s still in the testing phase and hasn’t become widely adopted yet. A few hobbyist developers have managed to get some initial results. Some even tried to contribute and interact with the Enigma2 forums, but they were pushed back.!


    For now, I can't help with this, and these updates definitely won’t be released from my side.!

    Edited once, last by Andro1 ().

  • Like I said before, there are no active teams working on DreamOS anymore. That ship sailed a long time ago, there's nothing new. Nothing coming. Period.

    It's clear that some of them here don't care about fixes or improvements. They just sit around criticizing without doing anything useful. They don’t even appreciate your efforts!

    Even the most disliked guy in the entire Enigma2 community is laughing at your comment :grinning_squinting_face: He's the same guy known for being toxic and completely out of touch :nauseated_face:

  • Ich finde es gut, dass es hier noch einige gibt, die Fixe und Verbesserungen vornehmen, Danke dafür.


    gutemine ist Dein "summer vacation" schon vorbei?

    Der Sommer und Herbst ist bei mir auch die Zeit wo ich mich sehr wenig mit der Dreambox beschäftige, es gibt genug anderes zu tun.


    Gruß Ralf

    Two mit SSD, One, 7025-S, 7000-S

  • Sachen fixen ja das ist schon ok und auch nicht schlecht nur dann andere sachen kaputt machen sollte vermieden werden.

    Und mal ehrlich, seit Jahrzehnten haben diese sachen hier niemanden wirklich je gestört geschweige das man auf die idee kommt wenn man keinen Inhalt hat dann auf leeren Inhalt die ok Taste zu benutzen oder gar info zu drücken ,für was auch ?

    Es ist nix da für ok und für info auch nicht also drückt man diese Tasten doch normalerweise überhaupt nicht.

    Das sind somit ja kleine fixe die hier gemacht wurden ,die aber nicht wirklich lebensnotwendig wären und ehrlich , die meisten die auch mit gesunden Menschenverstand an die Sache rangehen haben diese Fehler nie wirklich bemerkt oder gar je gesehen weil man bei einer leeren Seite wo kein Inhalt ist eben auch nicht auf die Idee kommt dort ok oder info zu drücken.


    Da dies auch noch eine Systemdatei ist sollte man schon schauen das man da nicht zu viel ändert das Nebenwirkungen haben kann ,solche Sachen dann dem User zu geben könnte mehr kaputt machen (auch an anderen Stellen) als es nützt .

    Edited once, last by zombi ().

  • zombi


    I agree that pressing "OK" or "Info" in an empty directory may be uncommon for experienced users who typically avoid such actions. However, this doesn’t mean the issue is nonexistent or unworthy of a fix.


    Addressing this issue improves system reliability, especially for new users who might accidentally press these buttons, preventing the current service from stopping (when pressing "OK") or displaying an empty EPG Selection screen for invalid services, directories, or markers (when pressing "Info").


    The modifications to showEPGList and channelSelected are simple checks (e.g., ref.valid() and excluding directories/markers) that leverage standard Enigma2 functions. These checks do not alter core system behavior; they only prevent actions for invalid cases, ensuring stability.

  • Like I said before, there are no active teams working on DreamOS anymore. That ship sailed a long time ago, there's nothing new. Nothing coming. Period.

    It's clear that some of them here don't care about fixes or improvements. They just sit around criticizing without doing anything useful. They don’t even appreciate your efforts!

    Even the most disliked guy in the entire Enigma2 community is laughing at your comment :grinning_squinting_face: He's the same guy known for being toxic and completely out of touch :nauseated_face:

  • We can whine all we want…. The reality is that Dream is gone, models are sold out and in a few years all the boxes are defective… They will simply sink into oblivion.. Nothing more than a page in history.

    There is absolutely no reason to develop anything for these boxes. Just use them as long as you can/wish. Viewing TV and recording as long as the box is working….

  • I've switched to openATV 7.6 Beta!

    Although it's not as fast as DreamOS, and my DM520 has limited capabilities...

    👉 I finally got what I wanted!


    Python 3 updated

    FFmpeg updated

    GStreamer updated

    YouTube now works in Full HD with both video and audio, and DASH support! 🚀


    Maybe it’s time to add a "Discover More" to open-source images now! 😉

  • New Update (3)

    • Modified the channelSelected function in the ChannelSelectionRadio class to include service validity checks using if ref and ref.valid().

    Download the updated file from the #1 post.