save your time decompiling code, all the source code is available on github.
https://github.com/OpenViX/enigma2
save your time decompiling code, all the source code is available on github.
https://github.com/OpenViX/enigma2
Vu Ultimo4K, OpenViX 5.0, 8xdvb-c, 8xdvb-s2, 2xdvb-t2
Vu Solo4K, OpenViX 5.0, 8xdvb-s2
Dreambox DM900, OpenViX 5.0, 2xdvb-s2, 2xdvb-c/t2
Terrestrial, Cable, Fixed 28.2e + Unicable2 LNB
MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD
Search for
Easy Python Decompiler v1.2.7z
Last edited by abu baniaz; 26-11-14 at 01:37. Reason: no live links please
MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD
birdman (26-11-14)
Here is a patch against the Enigma2 v1001 (== Apollo.096 == current) version of RecordTimer.py that implements the changes which Leader made (slightly different - it uses try/except to simplify the assignment lists of the original).
This strikes me as doing the right thing in the right place, namely in getting the icon settings to be changed by the same code functions which actually start and stop recordings.
It's been working fine., although it does also need to have the symbol set to 0 at boot-up, as otherwise it remembers teh last state (whcih might not be "off"). That can be done with a /etc/rcS.d script or, ideally, enigma2 should ensure that when it start up.
Any chance of getting this included as part of the standard git code? (with the comments removed)
RecordTimer.py.patch.zip
(It's zip'ed, as the uploader seems to be unhappy with uploading a text file...)
MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD
Hi Birdman,
just looked at your patch and I tryed it that way when i wrote the code myself, but it wouldn't work h = int(f), cause on the f=open is looked as a complete file and not as a single character as I did myself think it would be looked at by the code the same as you are thinking here too, but when compiled and run it crashes out. That why I had to use all the if statements to get a integer. The code will just crash out if your patch is used.
Last edited by Leader; 04-12-14 at 23:45.
It's working fine for me (I had two simultaneous recordings running tonight and so I looked for the icon changing when the first stopped, and it did what we expect).
And test scripts to see what happens if the file is empty, contains a non-numeric text, or contains multiple lines of text all work OK too. It just reads the first line, and if it isn't a number it ends up as 0.
I did apply this patch to the git source code, rather than the decompiled code of the *.pyo file. When I did the latter my Graphical EPG data disappeared (no, I don't understand that at all either...)
MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD
Leader (05-12-14)