My revised code appears to be working so here it is for anybody that wants to help with testing it, same story, make a backup of the original file and then overwrite with this copy and then restart enigma2.
If anybody is interested I replaced this section of code:
Code:You don't have permission to view the code content. Log in or register now.
with this:
Code:You don't have permission to view the code content. Log in or register now.
Also made similar changes in the loadEDG subroutine.
What the code used to do before was spawn a separate shell process by using the os.system call which would randomly fail.
What the new code does is use an Enigma call which effectively is built in functionality but it runs asynchronously which is what initially threw me. The line def dataAvail gets called whilst the program that processes the EPG runs in the background and the line def appClosed gets called when the program finishes which is why the lines self.epgpatch(eEPGCache.getInstance()) and self.closeAndCallback(True) have been moved when compared to the original code.
So effectively, whereas the previous code used to step through line by line one after the other, the new code performs a callback to the plugin whilst the program that processes the EPG data runs. It all sounds waffly but I can't think of a simpler way to explain it all to be honest.
It resolved the problem for me and I believe a few others here. No need to edit the file as I attached a copy of the modified file.
I checked a few days ago and the author of CrossEPG still have accepted or rejected the changes, I know that he doesn't visit that frequently so it a case of waiting I suppose.
Very strange how this happens, i had the problem where crossepg would default back to the internal hdd after a day or two then i decided to swap the two usb drives i was using (cheap generic ones) for a couple of kingston drives. It's now been more than 2 months & crossepg is still pointing towards the usb drives. Nothing else as changed, im still using the same version of crossepg that i had the problem with & the same image.
Is the USB flash drive mounted? You can check if it is by using DCC.
What settiings do you have in the file /usr/crossepg/crossepg.config, should have a line similar to db_root=/media/usb/crossepg
and in the file /etc/enigma2/settings, line should be config.misc.epgcachepath=/media/usb/
Last thing to try is also removing the crossepg folder on your USB stick.
Teaf, how do you create the swap space on the USB stick again? I get failed updates and it always seem to be when the rams low
Sent from my telephone.
Her you go mate https://www.digitalworldz.co.uk/index.php?threads/284297/#post2098597
I actually ended up creating a 16mb swap in the end so just change 8192 to 16384, some people also recommend a 32mb swap, so 32768
The real answer is go and get yourself a Vu Duo clone as I've never had any problems with CrossEPG on this box, touch wood,
since adding a 32mb swapfile and using teafs changes i havent heard a peep from crossepg its been great
We use essential cookies to make this site work, and optional cookies to enhance your experience.