I'm looking for some help modifying the Python source.
I'm using a GB Quad+ and I want try to fix this crash (well not really 'fix' ... more of a workaround):
http://www.world-of-satellite.com/sh...eshift-crashes
The workaround is to use the 'Jump' feature to jump to the end of the timeshift buffer. I can not reproduce the crash when I just to the end of the Timeshift, rather than pressing Stop on the remote.
So in summary: when in Timeshift mode, when I press 'Stop' on the remote, I want to 'jump' to the end of the buffer.
I'm looking at this source:
https://github.com/OpenViX/enigma2/b...s/Timeshift.py
I've copied it to /usr/lib/python/Components and verified it gets compiled to a pyo on each restart.
I have modified Timeshift.py by adding this code to the __init__ method
Code:
def __init__(self):
file = open("/tmp/enigma2.log", "r+")
file.write('hello world')
file.close()
I've verified the file is created and contains 'hello world' so I know my updates to the file are being picked up.
However, I'm not seeing the methods called as expected.
I've added logging to this method also:
Code:
def startTimeshift(self):
However, I'm not seeing this code being hit as I expected when I press Pause to start Timeshift.
Same it true for stopTimeshift()
What am I doing wrong? What methods are called when stopping Timeshift on a GB Quad+? Will it be possible to achieve what I want?
Thanks