Workarounds für crossepg und epg.dat backup

    • Workarounds für crossepg und epg.dat backup

      So,da das ganze jetzt halbwegs anständig funktioniert,poste ich es nun auch mal in anderen boards.
      Vielleicht kanns ja jemand gebrauchen.
      Das ganze ist nicht schön gelöst,was aber wahrscheinlich damit zusammen hängt,das ich keine ahnung hab was ich hier tue. :P
      Das einzig positive was ich über den folgenden mist sagen kann ist, das er soweit funktioniert. :D

      Ich mach einfach mal nen quote aus dem anderen forum:
      So,das ganze ist jetzt recht stabil geworden und ich hab noch weitere fixes für den crossepg gebastelt.
      Deshalb hab ich den thread titel mal geändert.
      Das ganze ist zwar immer noch nicht wirklich schön,aber es funktioniert stabil und bei crossepg konnte ich nun auch den MHW2 EPG fixen.

      Packe jetzt alle nötigen files hier ins post und entferne sie im restlichen thread,so ist das etwas sauberer.

      Also hier mal die nötigen files:

      (1) = enigma2_pre_start.sh
      Pfad = /usr/bin/ (chmod 755)
      Erklärung = Diese datei macht ein backup der epg.dat datai und schreibt sie nach /hdd/epg (ordner vorher anlegen).
      Außerdem ist sie für das laden und anschließende löschen der crossepg epg.dat verantwortlich.

      Script:

      Shell-Script

      1. #!/bin/sh
      2. if [ -f /media/hdd/crossepg/ext.epg.dat ];
      3. then
      4. cp /media/hdd/crossepg/ext.epg.dat /media/hdd/epg.dat
      5. sleep 1
      6. rm -rf /media/hdd/crossepg/ext.epg.dat
      7. else
      8. cp /media/hdd/epg.dat /media/hdd/epg/epg.dat.bak
      9. fi



      (2) = epg-recovery.sh
      Pfad = Wo immer ihr eure scripts startet(chmod 755). ;)
      Erklärung = Das script beendet e2 kopiert die epg.dat.bak und läd sie als normale epg.dat.

      Script:

      Shell-Script

      1. #!/bin/sh
      2. echo "EPG Recovery Initiated...Please wait for enigma2 to Restart..."
      3. sleep 6
      4. init 4
      5. cp /media/hdd/epg/epg.dat.bak /media/hdd/epg.dat
      6. init 3


      So nun zu den crossepg fixes.
      Den ersten,der für opentv verantwortlich ist, hatte ich ja schon gepostet.
      Dort musste einfach das demux device von 0 auf 3 geändert werden.

      (3) = crossepglib.py
      Pfad = /usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG (chmod 755)
      Erklärung = Das demux device wird durch folgende anpassung von 0 auf 3 geändert.

      Code:

      Quellcode

      1. x = "%s/crossepg_downloader -r -d %s" % (self.home_directory, dbdir)


      durch das ersetzen

      Quellcode

      1. x = "%s/crossepg_downloader -x /dev/dvb/adapter0/demux3 -r -d %s" % (self.home_directory, dbdir)

      (File im anhang)


      So nun noch der fix für MHW2 EPG.
      Hier musste ebenfalls nur das demux device angepasst werden.
      Hat aber ne weile gebraucht bis ich gefunden hab,das man das überhaupt anpassen kann und wo und wie.

      (4) = mhw2_dplus.conf
      (Das file ist davon abhängig,welchen provider man nutzen will.
      Im meinem fall ist das Digital+ 19.2°E.)
      Pfad = /usr/crossepg/scripts/mhw2epgdownloader
      Ertklärung = Das demux device wird durch folgende anpassung von 0 auf 3 geändert.

      Konfig:

      Quellcode

      1. # dispositivo
      2. device = /dev/dvb/adapter0/demux3


      In der konfig musste ich noch weitere anpassungen machen,damit der EPG für alle sender funktioniert.(Copy/Replace part)
      (File im anhang)

      So,das wars eigentlich.
      Den rest kann man sich dann über den EPGRefresh holen.
      Die vorgehensweise um den normalen EPG mit dem crossepg EPG zu mergen(ohne load epg patch,mit dem man ja crashes kriegt) ist...
      Crossepg ausführen und nen auto restart machen nun normalen EPG sammeln(manuell,oder eben mit EPGRefresh) und wieder eien restart machen.
      Diese vorgehensweise funktioniert aber nur,wenn das oben gepostete script genutzt wird,ansonsten wird immer nur der crossepg geladen.


      Well,since the whole thing has become pretty stable now and I also found some more fixes for crossepg so I allowed myself to change the thread title a little.
      The whole fix ain't relly pretty,but it works and I was able to fix the MHW2 EPG aswell.

      I attached all necessary files here and deleted them from the rest of the thread so that everything is a little more tidy.

      Those are the necessary files:

      (1) = enigma2_pre_start.sh
      Path = /usr/bin/ (chmod 755)
      Explaination = This file creates a backup of the complete epg.dat and copies it to /hdd/epg (folder has to be created).
      It also is responsible for loading and deletion(when necessary) of the crossepg ext.epg.dat.

      Script:

      Shell-Script

      1. #!/bin/sh
      2. if [ -f /media/hdd/crossepg/ext.epg.dat ];
      3. then
      4. cp /media/hdd/crossepg/ext.epg.dat /media/hdd/epg.dat
      5. sleep 1
      6. rm -rf /media/hdd/crossepg/ext.epg.dat
      7. else
      8. cp /media/hdd/epg.dat /media/hdd/epg/epg.dat.bak
      9. fi



      (2) = epg-recovery.sh
      Path = Wherever you start your scripts from(chmod 755). ;)
      Explaination = The script stops e2,copies the epg.dat.bak and loads it as regular epg.dat

      Script:

      Shell-Script

      1. #!/bin/sh
      2. echo "EPG Recovery Initiated...Please wait for enigma2 to Restart..."
      3. sleep 6
      4. init 4
      5. cp /media/hdd/epg/epg.dat.bak /media/hdd/epg.dat
      6. init 3


      Alright,now let's get to the crossepg fixes.
      The first one,that is responsible for the opentv,I already posted.
      The only thing that had to be done there was changing the demux device from 0 to 3.

      (3) = crossepglib.py
      Path = /usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG (chmod 755)
      Explaination = Changed the demux device from 0 to 3.

      Code:

      Quellcode

      1. x = "%s/crossepg_downloader -r -d %s" % (self.home_directory, dbdir)


      durch das ersetzen

      Quellcode

      1. x = "%s/crossepg_downloader -x /dev/dvb/adapter0/demux3 -r -d %s" % (self.home_directory, dbdir)

      (File attached)


      Now for the MHW2 fix.
      The demux device had to be adjusted here aswell.
      It was a little tough to find out if it could be done at all and if,where it had to be changed.

      (4) = mhw2_dplus.conf
      (The file depends on what provider you want to use.
      In my case it's Digital+ 19.2°E.)
      Path = /usr/crossepg/scripts/mhw2epgdownloader
      Explaination = Changed the demux device from 0 to 3.

      Config:

      Quellcode

      1. # dispositivo
      2. device = /dev/dvb/adapter0/demux3



      There were a few more fixes I had to make,so that all channels load properly.(Copy/Replace part)
      (File attached)


      Well,that was about it.
      The other regular epg data can be loaded manualy or with EPGRefresh plugin
      There procedure to merge the regular epg with the crossepg one(without the load patch which causes crashes,most of the time) is...
      Start crossepg and let it perform an e2 restart,now start to collect your regular epg data(manualy or with EPGRefresh) and perform another e2 restart.
      (At the second restart an epg.dat.bak ,for use with the epg-recoevery.sh, is created aswell.)
      This procedure only works if you use the enigma2_pre_start.sh,else only the crossepg data is loaded at every boot.


      Ps.Wenn edit wieder geht räum ich auf.:)
      Dateien
      • enigma2_pre_start.zip

        (276 Byte, 457 mal heruntergeladen, zuletzt: )
      • epg-recovery.zip

        (284 Byte, 519 mal heruntergeladen, zuletzt: )
      • crossepglib.zip

        (4,19 kB, 322 mal heruntergeladen, zuletzt: )
      • mhw2_dplus.zip

        (1,45 kB, 452 mal heruntergeladen, zuletzt: )
      “If you think this has a happy ending, you haven't been paying attention.”

      Dieser Beitrag wurde bereits 5 mal editiert, zuletzt von [sin] ()

    • Kleines update im ersten post.
      Hatte bei der mhw2_dplus.conf den eintrag für Hollywood HD vergessen.

      English version added.
      Please excuse all misspelling and typos
      “If you think this has a happy ending, you haven't been paying attention.”