Fix For Rytec XMLTV Importer

    • Official Post

    This fix will work in all enigma 2 images


    Basically what is happening when the rytec XMLTV importer is not working is that the required python modules are not working.


    You arrive at this with some new images, after using:
    MENU > SETUP > SOFTWARE MANAGEMENT > SOFTWARE UPDATE


    or


    Using an IMAGE Upgrade..


    SIDE NOTE:


    You may also loose your path to the HDD in epgdat_importer.py


    In your FTP browser goto :
    usr/lib/enigma2/python/Plugins/Extensions/EPGImport/ or usr/lib/enigma2/python/Plugins/Extensions/xmlttvimport/


    Edit this file on the PC (you need to ftp it): (metapad or unix editor in windows like Uedit)
    epgdat_importer.py


    On line 11 change the storage place for the epg
    tmppath = '/tmp' to tmppath = '/media/hdd' or tmppath = 'media/sda1' for usb pen

    Ftp it back to where you got it from.




    First you need to find out where your EPGimport plugin is located



    ie here:
    /usr/lib/enigma2/python/Plugins/Extensions/xmltvimport/


    or here
    /usr/lib/enigma2/python/Plugins/Extensions/EPGImport/


    then edit the enigma2.sh file in Anrakh's post so it says where yours is.


    You can find it with your ftp browser - example using FileZilla (A free ftp program avaliable on the net)



    OK - Make a note of where the plugin is.


    Now we need to edit the enigma2.sh startup script to preload the python modules required.


    Navigate to /usr/bin/ with your ftp program


    Now DOWNLOAD or EDIT a file called enigma2.sh , you need to add in a whole line of text to preload the module required.


    ie


    python /usr/lib/enigma2/python/Plugins/Extensions/EPGImport/boot.py


    or


    python /usr/lib/enigma2/python/Plugins/Extensions/xmltvImport/boot.py


    This is what enigma2.sh file looks like in a text editor


    #!/bin/sh
    /usr/bin/showiframe /boot/backdrop.mvi
    cd /home/root
    LD_PRELOAD=/usr/lib/libopen.so.0.0 /usr/bin/enigma2
    # enigma2 exit codes:
    #
    # 0 - restart enigma
    # 1 - halt
    # 2 - reboot
    #
    # >128 signal
    ret=$?
    case $ret in
    1)
    /sbin/halt
    ;;
    2)
    /sbin/reboot
    ;;
    4)
    /sbin/rmmod lcd
    /usr/sbin/fpupgrade --upgrade 2>&1 | tee
    /home/root/fpupgrade.log
    sleep 1;
    /sbin/rmmod fp
    /sbin/modprobe fp
    /sbin/reboot
    ;;
    *)
    ;;
    esac



    And this is how you need to change it With either EPGImport or xmltvimport in the edited line


    #!/bin/sh
    python /usr/lib/enigma2/python/Plugins/Extensions/EPGImport/boot.py
    /usr/bin/showiframe /boot/backdrop.mvi
    cd /home/root
    LD_PRELOAD=/usr/lib/libopen.so.0.0 /usr/bin/enigma2
    # enigma2 exit codes:
    #
    # 0 - restart enigma
    # 1 - halt
    # 2 - reboot
    #
    # >128 signal
    ret=$?
    case $ret in
    1)
    /sbin/halt
    ;;
    2)
    /sbin/reboot
    ;;
    4)
    /sbin/rmmod lcd
    /usr/sbin/fpupgrade --upgrade 2>&1 | tee
    /home/root/fpupgrade.log
    sleep 1;
    /sbin/rmmod fp
    /sbin/modprobe fp
    /sbin/reboot
    ;;
    *)
    ;;
    esac




    Now you need to ftp this file back to its location.


    In filezilla if you edited it click save, close and select YES to overwrite the original.


    If you saved it to your pc then edited it before sending it back to your box you will have to chmod the file to 755 (allow it to run as an executable)


    telnet


    # chmod 755 /usr/bin/enigma2.sh {press enter}



    Credit for this to Mick the original author.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!