Deutsch/German:
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 datei 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:
#!/bin/sh
if [ -f /media/hdd/crossepg/ext.epg.dat ];
then
cp /media/hdd/crossepg/ext.epg.dat /media/hdd/epg.dat
sleep 1
rm -rf /media/hdd/crossepg/ext.epg.dat
else
cp /media/hdd/epg.dat /media/hdd/epg/epg.dat.bak
fi
Alles anzeigen
(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:
#!/bin/sh
echo "EPG Recovery Initiated...Please wait for enigma2 to Restart..."
sleep 6
init 4
cp /media/hdd/epg/epg.dat.bak /media/hdd/epg.dat
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:
durch das ersetzen
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:
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.
---------------------------------------------------------------------------------------------------------
English/Englisch:
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:
#!/bin/sh
if [ -f /media/hdd/crossepg/ext.epg.dat ];
then
cp /media/hdd/crossepg/ext.epg.dat /media/hdd/epg.dat
sleep 1
rm -rf /media/hdd/crossepg/ext.epg.dat
else
cp /media/hdd/epg.dat /media/hdd/epg/epg.dat.bak
fi
Alles anzeigen
(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:
#!/bin/sh
echo "EPG Recovery Initiated...Please wait for enigma2 to Restart..."
sleep 6
init 4
cp /media/hdd/epg/epg.dat.bak /media/hdd/epg.dat
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:
durch das ersetzen
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:
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.