Enigma2 Python patcher

  • first version makes this patch http://www.dream-multimedia-tv…age=Thread&threadID=12534


    /usr/script/python_patcher.sh
    (chmod 755)


    i call script from my own /etc/rc3.d>S90UserInit (propably will be enough run once after OnlineUpdate, but i dont know how)
    (chmod 755)

  • second version


    # 2010.04.17 - add EPG Full Description to services list(EventName.py)
    stolen from http://www.dream-multimedia-tv…age=Thread&threadID=11897
    to see changes on screen also skin_patcher must be used in pair


    # 2010.04.17 - remove " if EPG EventName stards and ends with it(EventName.py)

  • small changes


    python_patcher.sh
    #
    # 2010.06.15 - move ShortDescription to ExtendedDescription when Extended is empty(EventName.py)
    # 2010.06.13 - fix File Play mode(ServiceName.py)
    # 2010.04.22 - add parameter "show_event_progress_in_servicelist" to E2 config(if not present)
    # 2010.04.22 - fix DVD mode(ServiceName.py)
    # 2010.04.17 - add EPG FULL_DESCRIPTION to services list(EventName.py)
    # 2010.04.17 - remove " if EPG EventName stards and ends with it(EventName.py)
    # 2010.04.14 - add orbital position to selected service name(ServiceName.py)
    #


    skin_patcher.sh
    #
    # 2010.06.16 - skip FullEPG when short and extended present
    # 2010.06.15 - fitted for DMConcinnity-HD
    # 2010.04.24 - yellow Event Title in ChannelSelection
    # 2010.04.17 - chnge ExtendedEPG To FullEPG if EventName.py has FULL_DESCRIPTION
    # 2010.03.30 - ReplaceFonts where cant see russian and latvian letters
    # 2010.03.18 - AddWrapAround
    #

  • changes:


    python_patcher.sh
    #
    # 2010.10.27 - ChannelSelection.py # start Set_Audio_Language_by_Priority.sh on service zap
    # 2010.07.14 - E2 config # add more parameters to E2 config(if not present)
    # 2010.06.15 - EventName.py # move ShortDescription text to ExtendedDescription when Extended is empty
    # 2010.06.13 - ServiceName.py # fix File Play mode
    # 2010.04.22 - E2 config # add parameter "show_event_progress_in_servicelist" to E2 config(if not present)
    # 2010.04.22 - ServiceName.py # fix DVD mode
    # 2010.04.17 - EventName.py # add EPG FULL_DESCRIPTION to services list
    # 2010.04.17 - EventName.py # remove " if EPG EventName stards and ends with it
    # 2010.04.14 - ServiceName.py # add orbital position to selected service name
    #


    skin_patcher.sh
    #
    # 2010.10.24 - fix Help menu
    # 2010.06.17 - fix DMConcinnity-HD->SkinSelector
    # 2010.06.16 - skip FullEPG when Short and Extended present
    # 2010.06.15 - fitted for DMConcinnity-HD
    # 2010.04.24 - yellow EventTitle in ChannelSelection
    # 2010.04.17 - change ExtendedEPG To FullEPG(Short+Extended) if EventName.py has FULL_DESCRIPTION
    # 2010.03.30 - Replace Fonts where cant see russian and latvian letters
    # 2010.03.18 - AddWrapAround
    #

  • changes:


    python_patcher.sh


    skin_patcher.sh

  • changes:


    python_patcher.sh
    #
    # 2012.02.14 - Web/ServicesReload # add self.eDVBDB.removeServices()
    # 2012.01.26 - /usr/share/enigma2/setup.xml "AutoHide Infobar"
    # 2012.01.26 - UsageConfig.py # add option "AutoHide Infobar" in to Menu->System->Customize section
    # 2011.11.05 - AudioSelection.py# adopted for swaped way
    # 2011.10.19 - encoding.conf # add lines for Baltcom Riga_MMDS(cable tv)
    # 2011.10.18 - crontabs # add rdate
    # 2011.07.30 - opkg.conf # remove paths to */media/* folders
    # 2011.07.19 - AudioSelection.py# swap Subtitles<->AudioTracks(Yellow button description)
    # 2011.07.07 - *.py_orig_* # remove backup copy if md5 checksum same as previous
    # 2011.04.04 - E2 config # set ParentalControl default values 1111
    # 2011.02.22 - E2 config # set useTransponderTime=false if rdate installed
    # 2011.02.22 - E2 config # set WebIF autentification On
    # 2010.10.27 - ChannelSelection.py # start Set_Audio_Language_by_Priority.sh on service zap
    # 2010.07.14 - E2 config # add more parameters to E2 config(if not present)
    # 2010.06.15 - EventName.py # move EPG's ShortDescription text to ExtendedDescription when Extended is empty
    # 2010.06.13 - ServiceName.py # fix File Play mode
    # 2010.04.22 - E2 config # add parameter "show_event_progress_in_servicelist" to E2 config(if not present)
    # 2010.04.22 - ServiceName.py # fix DVD mode
    # 2010.04.17 - EventName.py # add EPG FULL_DESCRIPTION to services list
    # 2010.04.17 - EventName.py # remove '"' if EPG EventName starts and ends with it
    # 2010.04.14 - ServiceName.py # add orbital position to selected service name
    #


    skin_patcher.sh
    #
    # 2012.02.19 - increase ChannelContextMenu vertical size
    # 2012.02.18 - patch every installed skin instead current selected
    # 2011.09.22 - add FullEPG(Short+Extended) to EPGSelectionMulti
    # 2011.09.22 - replace LT6.HD/fonts/lt6-edc.ttf font where cant see russian and latvian letters
    # 2011.07.07 - remove backup copy if md5 checksum same as previous
    # 2010.10.24 - fix Help menu
    # 2010.06.17 - fix DMConcinnity-HD->SkinSelector
    # 2010.06.16 - skip FullEPG when Short and Extended present
    # 2010.06.15 - fitted for DMConcinnity-HD
    # 2010.04.24 - yellow EventTitle in ChannelSelection
    # 2010.04.17 - change ExtendedEPG To FullEPG(Short+Extended) if EventName.py has FULL_DESCRIPTION
    # 2010.03.30 - Replace fonts where cant see russian and latvian letters
    # 2010.03.18 - AddWrapAround in menu sections
    #

  • changes:


    python_patcher.sh
    #
    # 2012.03.22 - *.py_orig_* # search for last backup copy when patcer.sh newer than *.py
    # 2012.03.22 - ServiceName.py # fix Folder Titles
    # 2012.03.21 - ChannelSelection.py # hide empty NewFound folders
    # 2012.03.21 - ChannelSelection.py # show services count only for selected folders
    # 2012.03.21 - /usr/share/enigma2/setup.xml "Show Services Count for Folders"
    # 2012.03.21 - UsageConfig.py # add option "Show Services Count for Folders" in to `Menu » System » Customize` section
    # 2012.03.21 - /usr/share/enigma2/setup.xml "Hide Empty NewFound Folders"
    # 2012.03.21 - UsageConfig.py # add option "Hide Empty NewFound Folders" in to `Menu » System » Customize` section
    # 2012.03.20 - ChannelSelection.py # show services count
    # 2012.03.19 - ChannelSelection.py # change bouqets path separator '/' to ' » '
    # 2012.02.14 - Web/ServicesReload # add self.eDVBDB.removeServices()
    # 2012.01.26 - /usr/share/enigma2/setup.xml "AutoHide Infobar"
    # 2012.01.26 - UsageConfig.py # add option "AutoHide Infobar" in to `Menu » System » Customize` section
    # 2011.11.05 - AudioSelection.py# adopted for swaped way
    # 2011.10.19 - encoding.conf # add lines for Baltcom Riga_MMDS(cable tv)
    # 2011.10.18 - crontabs # add rdate
    # 2011.07.30 - opkg.conf # remove paths to */media/* folders
    # 2011.07.19 - AudioSelection.py# swap Subtitles<->AudioTracks(Yellow button description)
    # 2011.07.07 - *.py_orig_* # remove backup copy if md5 checksum same as previous
    # 2011.04.04 - E2 config # set ParentalControl default values 1111
    # 2011.02.22 - E2 config # set useTransponderTime=false if rdate installed
    # 2011.02.22 - E2 config # set WebIF autentification On
    # 2010.10.27 - ChannelSelection.py # start Set_Audio_Language_by_Priority.sh on service zap
    # 2010.07.14 - E2 config # add more parameters to E2 config(if not present)
    # 2010.06.15 - EventName.py # move EPG's ShortDescription text to ExtendedDescription when Extended is empty
    # 2010.06.13 - ServiceName.py # fix File Play mode
    # 2010.04.22 - E2 config # add parameter "show_event_progress_in_servicelist" to E2 config(if not present)
    # 2010.04.22 - ServiceName.py # fix DVD mode
    # 2010.04.17 - EventName.py # add EPG FULL_DESCRIPTION to services list
    # 2010.04.17 - EventName.py # remove '"' if EPG EventName starts and ends with it
    # 2010.04.14 - ServiceName.py # add orbital position to selected service name
    #


    skin_patcher.sh
    #
    # 2012.03.11 - replace Setup screen in NN2HD skin
    # 2012.03.10 - show `Menu > Section > Sub Section` path as window title
    # 2012.03.07 - remove Menu Titles duplicates
    # 2012.03.03 - yellow EventProgressBar in ChannelSelection
    # 2012.02.19 - increase ChannelContextMenu vertical size
    # 2012.02.18 - patch every installed skin instead current selected
    # 2011.09.22 - add FullEPG(Short+Extended) to EPGSelectionMulti
    # 2011.09.22 - replace LT6.HD/fonts/lt6-edc.ttf font where cant see russian and latvian letters
    # 2011.07.07 - remove backup copy if md5 checksum same as previous
    # 2010.10.24 - fix Help menu
    # 2010.06.17 - fix DMConcinnity-HD->SkinSelector
    # 2010.06.16 - skip FullEPG when Short and Extended present
    # 2010.06.15 - fitted for DMConcinnity-HD
    # 2010.04.24 - yellow EventTitle in ChannelSelection
    # 2010.04.17 - change ExtendedEPG To FullEPG(Short+Extended) if EventName.py has FULL_DESCRIPTION
    # 2010.03.30 - Replace fonts where cant see russian and latvian letters
    # 2010.03.18 - AddWrapAround in menu sections
    #

  • changes:


    python_patcher.sh
    #
    # 2012.04.05 - ChannelSelection.py # cut begining of window title if lenght > 60 characters
    # 2012.04.04 - ChannelSelection.py # as window title show last two folders title instead `Channel selection`+ last folder title
    # 2012.03.22 - *.py_orig_* # search for last backup copy when patcer.sh newer than *.py
    # 2012.03.22 - ServiceName.py # fix Folder Titles
    # 2012.03.21 - ChannelSelection.py # hide empty NewFound folders
    # 2012.03.21 - ChannelSelection.py # show services count only for selected folders
    # 2012.03.21 - /usr/share/enigma2/setup.xml "Show Services Count for Folders"
    # 2012.03.21 - UsageConfig.py # add option "Show Services Count for Folders" in to `Menu » System » Customize` section
    # 2012.03.21 - /usr/share/enigma2/setup.xml "Hide Empty NewFound Folders"
    # 2012.03.21 - UsageConfig.py # add option "Hide Empty NewFound Folders" in to `Menu » System » Customize` section
    # 2012.03.20 - ChannelSelection.py # show services count
    # 2012.03.19 - ChannelSelection.py # change bouqets path separator '/' to ' » '
    # 2012.02.14 - Web/ServicesReload # add self.eDVBDB.removeServices()
    # 2012.01.26 - /usr/share/enigma2/setup.xml "AutoHide Infobar"
    # 2012.01.26 - UsageConfig.py # add option "AutoHide Infobar" in to `Menu » System » Customize` section
    # 2011.11.05 - AudioSelection.py# adopted for swaped way
    # 2011.10.19 - encoding.conf # add lines for Baltcom Riga_MMDS(cable tv)
    # 2011.10.18 - crontabs # add rdate
    # 2011.07.30 - opkg.conf # remove paths to */media/* folders
    # 2011.07.19 - AudioSelection.py# swap Subtitles<->AudioTracks(Yellow button description)
    # 2011.07.07 - *.py_orig_* # remove backup copy if md5 checksum same as previous
    # 2011.04.04 - E2 config # set ParentalControl default values 1111
    # 2011.02.22 - E2 config # set useTransponderTime=false if rdate installed
    # 2011.02.22 - E2 config # set WebIF autentification On
    # 2010.10.27 - ChannelSelection.py # start Set_Audio_Language_by_Priority.sh on service zap
    # 2010.07.14 - E2 config # add more parameters to E2 config(if not present)
    # 2010.06.15 - EventName.py # move EPG's ShortDescription text to ExtendedDescription when Extended is empty
    # 2010.06.13 - ServiceName.py # fix File Play mode
    # 2010.04.22 - E2 config # add parameter "show_event_progress_in_servicelist" to E2 config(if not present)
    # 2010.04.22 - ServiceName.py # fix DVD mode
    # 2010.04.17 - EventName.py # add EPG FULL_DESCRIPTION to services list
    # 2010.04.17 - EventName.py # remove '"' if EPG EventName starts and ends with it
    # 2010.04.14 - ServiceName.py # add orbital position to selected service name
    #


    skin_patcher.sh
    #
    # 2012.03.31 - NN2-HD, move Volume/Mute down to able see Menu's and Channel Selection Titles
    # 2012.03.31 - search for last backup copy when patcer.sh newer than *.xml
    # 2012.03.11 - replace Setup screen in NN2HD skin
    # 2012.03.10 - show `Menu » Section » Sub Section` path as window title
    # 2012.03.07 - remove Menu Titles duplicates
    # 2012.03.03 - yellow EventProgressBar in ChannelSelection
    # 2012.02.19 - increase ChannelContextMenu vertical size
    # 2012.02.18 - patch every installed skin instead current selected
    # 2011.09.22 - add FullEPG(Short+Extended) to EPGSelectionMulti
    # 2011.09.22 - replace LT6.HD/fonts/lt6-edc.ttf font where cant see russian and latvian letters
    # 2011.07.07 - remove backup copy if md5 checksum same as previous
    # 2010.10.24 - fix Help menu
    # 2010.06.17 - fix DMConcinnity-HD->SkinSelector
    # 2010.06.16 - skip FullEPG when Short and Extended present
    # 2010.06.15 - fitted for DMConcinnity-HD
    # 2010.04.24 - yellow EventTitle in ChannelSelection
    # 2010.04.17 - change ExtendedEPG To FullEPG(Short+Extended) if EventName.py has FULL_DESCRIPTION
    # 2010.03.30 - Replace fonts where cant see russian and latvian letters
    # 2010.03.18 - AddWrapAround in menu sections
    #

  • thx.


    ich habe zwar dadurch keine anzahl der sender hinter den satelliten, aber immerhin die anzeige der abgelaufenen minuten hinter der jeweiligen sendung in der senderliste.


    ich würde mich an deiner stelle mal mit dem image befassen, dass du drauf hast. für die restzeit hättest du das image nicht patchen brauchen. das kann in den merlin-einstellungen aktiviert werden. aber das ist jetzt alles OT. hier geht es schliesslich um die entwicklung von e2 seitens dmm.

    Gruss
    Dre


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

  • kopter
    there are screenshots
    http://www.dream-multimedia-tv…age=Thread&threadID=16493


    after execute *_patcher.sh scripts you can compare procesed py files, i use TotalCommander->File->Compare bt content
    also restart GUI is requred after patching

  • how can i
    execute the files? i have both set file attributes on 755 however, i then, after rebooting the box no new menu item, which i can run the files. i use merlin3 image (newest). which image do you use with the patchers?

  • and how can i execute the files? i have both set file attributes on 755 however, i then, after rebooting the box no new menu item, which i can run the files. i use merlin3 image (newest). which image do you use with the patchers?

  • kopter
    execute scripts from telnet console

    Code
    /usr/script/python_patcher.sh
    /usr/script/skin_patcher.sh


    or
    call from Menu->Plugins->Scriptexecuter


    thx!!! now i got it!! but it was a little tricky, cause i had to use in addition the remote control key mute. with this key, i can set once the pegs and can remove then again. (pic 2 and 3) now enigma2 is an essential step better!!!