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
Copied from download section....for discussion
Not sure whether the Translator plugin can find out where you are.
The other thing that you might spot is that it can go back to before your EPG display actually starts. Just keep going forward and eventually (after the configurable 20 items) you'll loop back to a few hours in the past.
But I'll take a look.
As for epgtranslatorlite, the only copy I can see is at linuxsat-support, and any attempt to download it just produces "Access Denied".
Last edited by birdman; 22-12-20 at 04:22.
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
Sorry i posted in the wrong section
Im sure there was lots of talk about this option but the forum went so cant point you to it.
Yes i normal change 020 to 999 lol then
here is the plugin.py from epgtranslatorlite_0.4-r1
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
ja5 (22-12-20)
@Birdman for python 3 change code in plugin.py around line 326 to:
fixes:Code:try: if sys.version_info >= (3, 0): output = urlopen(request, timeout=20).read().decode() else: output = urlopen(request, timeout=20).read() data = output[output.find(before_trans) + len(before_trans):]
Code:File "/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/plugin.py", line 275, in __init__ self.helptext['en'] = self.get_translation(self.base_helptext, from_lg='en', to_lg='en') File "/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/plugin.py", line 328, in get_translation data = output[int(output.find(before_trans) + len(before_trans)):] TypeError: argument should be integer or bytes-like object, not 'str' [ePyObject] (CallObject(<bound method ActionMap.action of <Components.ActionMap.ActionMap object at 0xb1a47988>>,('WizardActions', 'ok')) failed)
Last edited by twol; 22-12-20 at 14:19.
Gigablue Quad 4K & UE 4K
.........FBC Tuners:
------------------> GT-Sat unicable LNB to 1.5M dish(28.2E)
------------------> Gigablue unicable LNB to 80 cm dish(19.2E)
.......................> FBC & DVB-S2X into 90cm dish (27.5W) Opticum robust Unicable LNB
AX HD61, Edision Osmio 4K+, Zgemma H9Combo, Octagon SF8008 , gbtrio4k, h9se using unicable ports
Zgemma H9 C/S into Giga4K
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
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
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
I only meant to fix the initial bug to get this working, but having got an idea as to how it works I might as well make a few simple improvements(?).
I've made changes and have posted a test release at:
https://www.world-of-satellite.com/s...l=1#post507614
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
abu baniaz (12-01-21),cactikid (14-01-21)
The reason that only some EventView windows can be translated is that the others have the key-bindings from the underlying EPG which fired them off, and =so teh Text button fires up an "Enter date/Time window".
I haven't (yet?) been able to find a way around this. And when I was looking things didn't happen the way I expected (the windows never seem to die - is there a memory leak there?).
So I decided to release what did work (or at least seemed to) and look at the rest in a more leisurely way.
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
abu baniaz (12-01-21),ja5 (12-01-21)
Well a quick test and works fine, not found any problem yet
Thanks again for you work
But I have if you invoke the EPG browser while a recording is running.
I've fixed the crash, but it's now in a state whereby this happens:
- start playing a recording
- start the EPG translation browser (blue, then select the plugin)
- press ch+ (or ch-) - you'll see "No event information" as text (plus its translation).
- press ch+ (or ch-) again. This will take you to the live channel 1-up (or -down) from the channel that was displaying before you started to play the recording. (What description you get here is variable...)
- Press Exit to leave the translation plugin
- If you now press EPG that display thinks you are on the original channel
- But you are actually showing the channel two away from it (you have pressed ch+/- twice)
- and now ch+ (ch-) no longer work
- until you press the button to stop playback, that will take you back to your movie list (if that is how you have things configured)
- and exiting from that takes you back to the channel whence you started.
Weird. But until I fix the key-bindings it's not remotely correct.
EDIT: I think I've fixed that too (I now get red crosses for ch+/- when a recording is running), but needs a bit more testing and (probably) a tidy up.
Indeed, as I type I've found a similar oddity if timeshift is running...
Last edited by birdman; 13-01-21 at 02:01.
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
I've released rc2 at:
https://www.world-of-satellite.com/s...l=1#post507698
which fixes the problems in rc1.
The oddity with timeshift was fixed when I came across the ServiceEventTracker which allows you to add a callback when the service (channel) has actually changed, which can be some time after your code originally requested it. Very useful...
Any comments in this thread please.
PS: Another change I've made to the code is to add lots of comments (currently 25% of the lines - up from 1%) so other people may have some idea of what is going on.
Last edited by birdman; 14-01-21 at 03:46.
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
abu baniaz (14-01-21),ja5 (14-01-21)
I have come across a quirk, that I reckon I can fix.
I'm doing all of my testing by translating my (totally) English EPG into German. This can make some programmes "literally unhappy".
Freeview oftens put properties in [] at the end of a description (to indicate subtitles, audio-description, signed etc.). So a programme can end up with [S,AD]. Which google translates to [TRAURIG] (and, no doubt, [TRISTE] in French).
I can strip these off before translating, and add those bit back to the translated text.
Just need to use this regular expression to get them all in one go (I love Perl for doing this sort of thing):
And python can use Perl regular expressions.Code:my ($desc, $prop) = ($t =~ / (.*?) # The real description \s* # Optional whitespace ( # Start all [] groups saving (?:\[ # Start a group (?:[^,]{1,3},)* # Leading tags (trailing ,) (?:[^,]{1,3}) # final tag (no ,) \]\s* # end a prop )* # end a group - and repeat ) # End all [] groups saving \s*$/x); # to EOL and RE options
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
Willo3092 (14-01-21)