PDA

View Full Version : EPG Translator (Discussion thread)



Rob van der Does
05-09-13, 12:32
Be aware: the blue button causes Enigma to crash. The author was not able to fix that for ViX.
As it turned out the plugin was designed for old OE2-based images only. We suggested the author a simple way to make his plugin compatible for a wide range of images. Unfortunately he didn't even answer.
But our in-house genius AndyBlac found a way ta accept the plugin. So no more black sreen (from build 733 onwards).

TK4|2|1
08-10-13, 07:20
Is this still available in feeds, I can't find it?


Sent using sorcery and the magic interwebs

Rob van der Does
08-10-13, 12:10
Look for 'translator' under extensions.

TK4|2|1
08-10-13, 13:05
Look for 'translator' under extensions.

I did, I'll look again.


Sent using sorcery and the magic interwebs

ronand
08-10-13, 15:57
Its there and works quite well too.

TK4|2|1
10-10-13, 07:57
Found it.
But it doesn't translate the epg or am I doing something wrong. If I go to plugins and select the plugin I get a box on screen that translates the program synopsis, but that's hardly an EPG translation of the epg. Like I say am I doing it wrong?


Sent using sorcery and the magic interwebs

Rob van der Does
10-10-13, 08:01
That's indeed what it does. And I'm quite happy with it.

Complaints (about the name or missing functionality) to the author please.

ronand
10-10-13, 09:56
Use the left/right arrows to flick through the events on the epg. Also use the blue button to get quick access to the plugin

Rob van der Does
23-07-14, 04:43
Vs 0.9 is available via the feeds for several weeks already.

DaMacFunkin
23-07-14, 08:25
Wasn't aware of this thank you.

dave798
23-07-14, 14:02
Vs 0.9 is available via the feeds for several weeks already.

i had epg translator installed on previous image version (am now on ver 22 apollo) after update translator is not there and also not available on the feeds

Rob van der Does
23-07-14, 18:16
I just found out I made a mistake in our repos, causing the building of the plugin to fail. Corrected this for next build, thanks for reporting.

dave798
23-07-14, 18:52
have downloaded and successfully installed translator ipk ver 0.9 thanks in advance rob van der does for correcting future build

Larry-G
02-08-14, 19:52
I have no idea what's wrong, but here is the ipk: 36392


http://www.world-of-satellite.com/showthread.php?39727-cant-fing-plugin-youtube-trailer-epg-translotor&p=305101&viewfull=1#post305101

gilvey
04-12-20, 23:03
Anyone else having an issue with translator Plugin?
It used to translate straight away, now it take forever.
Running openvix 5.3.039 edision os mega
Tried running it on openvix 5.4.003 and it won't even open just crashes the receiver

twol
05-12-20, 08:18
Anyone else having an issue with translator Plugin?
It used to translate straight away, now it take forever.
Running openvix 5.3.039 edision os mega
Tried running it on openvix 5.4.003 and it won't even open just crashes the receiver

Crash log??

malcolmp
05-12-20, 10:22
Hi,
Yes I'm having the same problem, on three boxes, running openvix 5.4.003 on two and openatv on the other (although none of them crash)

Willo3092
05-12-20, 11:02
Seems to be a problem with the url and control characters

<734133.0304> 09:57:41.3081 [Screen] Showing screen 'InfoBarSummary'.
<734133.0393> 09:57:41.3170 [Skin] Parsing embedded skin '<embedded-in-translatorMain>'.
<734133.0400> 09:57:41.3177 [Skin] Processing screen '<embedded-in-translatorMain>', position=(460, 80), size=(1000 x 610) for module 'translatorMain'.
<734133.0506> 09:57:41.3283 Traceback (most recent call last):
<734133.0507> 09:57:41.3284 File "/usr/lib/enigma2/python/mytest.py", line 239, in processDelay
<734133.0509> 09:57:41.3286 callback(*retval)
<734133.0510> 09:57:41.3287 File "/usr/lib/enigma2/python/Screens/InfoBarGenerics.py", line 2785, in extensionCallback
<734133.0511> 09:57:41.3288 File "/usr/lib/enigma2/python/Tools/BoundFunction.py", line 9, in __call__
<734133.0512> 09:57:41.3289 File "/usr/lib/enigma2/python/Screens/InfoBarGenerics.py", line 1661, in runPlugin
<734133.0513> 09:57:41.3290 File "/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/EPGTranslator.py", line 1687, in main
<734133.0514> 09:57:41.3291 File "/usr/lib/enigma2/python/mytest.py", line 334, in open
<734133.0516> 09:57:41.3294 dlg = self.current_dialog = self.instantiateDialog(screen, *arguments, **kwargs)
<734133.0517> 09:57:41.3294 File "/usr/lib/enigma2/python/mytest.py", line 271, in instantiateDialog
<734133.0520> 09:57:41.3297 return self.doInstantiateDialog(screen, arguments, kwargs, self.desktop)
<734133.0521> 09:57:41.3298 File "/usr/lib/enigma2/python/mytest.py", line 301, in doInstantiateDialog
<734133.0523> 09:57:41.3300 dlg.applySkin()
<734133.0524> 09:57:41.3301 File "/usr/lib/enigma2/python/Screens/Screen.py", line 239, in applySkin
<734133.0525> 09:57:41.3302 File "/usr/lib/enigma2/python/Screens/Screen.py", line 270, in createGUIScreen
<734133.0526> 09:57:41.3303 File "/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/EPGTranslator.py", line 1324, in onLayoutFinished
<734133.0526> 09:57:41.3304 File "/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/EPGTranslator.py", line 1459, in getEPG
<734133.0527> 09:57:41.3304 File "/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/EPGTranslator.py", line 1480, in showEPG
<734133.0528> 09:57:41.3305 File "/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/EPGTranslator.py", line 1403, in translateEPG
<734133.0529> 09:57:41.3306 File "/usr/lib/python2.7/urllib2.py", line 155, in urlopen
<734133.0530> 09:57:41.3307 File "/usr/lib/python2.7/urllib2.py", line 430, in open
<734133.0531> 09:57:41.3308 File "/usr/lib/python2.7/urllib2.py", line 448, in _open
<734133.0532> 09:57:41.3309 File "/usr/lib/python2.7/urllib2.py", line 408, in _call_chain
<734133.0533> 09:57:41.3310 File "/usr/lib/python2.7/urllib2.py", line 1229, in http_open
<734133.0534> 09:57:41.3311 File "/usr/lib/python2.7/urllib2.py", line 1196, in do_open
<734133.0535> 09:57:41.3312 File "/usr/lib/python2.7/httplib.py", line 1058, in request
<734133.0536> 09:57:41.3313 File "/usr/lib/python2.7/httplib.py", line 1092, in _send_request
<734133.0537> 09:57:41.3314 File "/usr/lib/python2.7/httplib.py", line 945, in putrequest
<734133.0538> 09:57:41.3315 httplib.InvalidURL: URL can't contain control characters. '/m?hl=en&sl=auto&q=Criminal%20Minds:%20Beyond%20Borders%207515%20Im %20Namen%20der%20Hoffnung%20(2016)%20[12+]%207515%20Kate%20und%20Peter%20sind%20in%20Casabla nca%20entf\xc3\xbchrt%20worden.%20Die%20Verbrechen %20verlangen%20400.000%20Dollar%20L\xc3\xb6segeld. %20Jack%20Garrett%20und%20sein%20Team%20finden%20h eraus%20dass%20einer%20der%20Reisef\xc3\xbchrer%20 Gesch\xc3\xa4fte%20mit%20einem%20H\xc3\xa4ndler%20 im%20Souk%20machte%20bei%20dem%20die%20Entf\xc3\xb chrten%20zuletzt%20gesehen%20wurden.%20Doch%20dies e%20Spur%20f\xc3\xbchrt%20ins%20Leere.%20Bei%20der %20Recherche%20nach%20fr\xc3\xbcheren%20Entf\xc3\x bchrungen%20von%20Touristen%20st\xc3\xb6sst%20Mont y%20auf%20einen%20Stamm%20der%20Tuareg.%207514%20A lec%20Smight%207514%20Gary%20Sinise%207514%20Alana %20De%20La%20Garza%207514%20Daniel%20Henney%207514 %20Tyler%20James%20Williams%207514%20Annie%20Funke %207514%20Wendy%20Phillips%207514%20Tony%20Pasqual ini%207514%20Michael%20Benyaer%207514%20Ali%20Hill is%207514%20Kelly%20Frye%207514%20Peter%20Banifaz% 207514%20Rachid%20Sabitri%207514%20Maz%20Siam%2075 14%20Fouad%20Hajji%207514%20Wiley%20M.%20Pickett%2 07514%20Zuhair%20Haddad%207514%20Marwan%20Salama%2 07514%20Ezra%20Dewey%207514%20Declan%20Whaley' (found at least '\xc3')
<734133.0539> 09:57:41.3316 [ePyObject] (CallObject(<bound method Session.processDelay of <__main__.Session instance at 0xb1416e68>>,()) failed)


dmesg

abu baniaz
05-12-20, 12:38
opkg install enigma2-plugin-extensions-translator


Same for me



11:34:27.4187 Traceback (most recent call last):
11:34:27.4188 File "/usr/lib/enigma2/python/Components/ActionMap.py", line 57, in action
11:34:27.4191 File "/usr/lib/enigma2/python/Screens/PluginBrowser.py", line 159, in save
11:34:27.4192 File "/usr/lib/enigma2/python/Screens/PluginBrowser.py", line 163, in run
11:34:27.4193 File "/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/EPGTranslator.py", line 1687, in main
11:34:27.4195 File "/usr/lib/enigma2/python/mytest.py", line 334, in open
11:34:27.4197 dlg = self.current_dialog = self.instantiateDialog(screen, *arguments, **kwargs)
11:34:27.4199 File "/usr/lib/enigma2/python/mytest.py", line 271, in instantiateDialog
11:34:27.4201 return self.doInstantiateDialog(screen, arguments, kwargs, self.desktop)
11:34:27.4201 File "/usr/lib/enigma2/python/mytest.py", line 301, in doInstantiateDialog
11:34:27.4203 dlg.applySkin()
11:34:27.4204 File "/usr/lib/enigma2/python/Screens/Screen.py", line 239, in applySkin
11:34:27.4205 File "/usr/lib/enigma2/python/Screens/Screen.py", line 270, in createGUIScreen
11:34:27.4206 File "/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/EPGTranslator.py", line 1324, in onLayoutFinished
11:34:27.4207 File "/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/EPGTranslator.py", line 1459, in getEPG
11:34:27.4208 File "/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/EPGTranslator.py", line 1480, in showEPG
11:34:27.4209 File "/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/EPGTranslator.py", line 1403, in translateEPG
11:34:27.4210 File "/usr/lib/python2.7/urllib2.py", line 155, in urlopen
11:34:27.4212 File "/usr/lib/python2.7/urllib2.py", line 430, in open
11:34:27.4213 File "/usr/lib/python2.7/urllib2.py", line 448, in _open
11:34:27.4213 File "/usr/lib/python2.7/urllib2.py", line 408, in _call_chain
11:34:27.4214 File "/usr/lib/python2.7/urllib2.py", line 1229, in http_open
11:34:27.4216 File "/usr/lib/python2.7/urllib2.py", line 1196, in do_open
11:34:27.4217 File "/usr/lib/python2.7/httplib.py", line 1058, in request
11:34:27.4218 File "/usr/lib/python2.7/httplib.py", line 1092, in _send_request
11:34:27.4219 File "/usr/lib/python2.7/httplib.py", line 945, in putrequest
11:34:27.4221 httplib.InvalidURL: URL can't contain control characters. '/m?hl=en&sl=auto&q=Nur%20in%20Sky%20Sportsbars:%20UEFA%20Europa%20L eague%202020/2021%20:%20Roter%20Stern%20-%20Hoffenheim%207515%20%20%207515%20Action%20vom%2 0UEFA%20Europa%20League-Spiel%20Roter%20Stern%20gegen%20Hoffenheim.%20N\xc 3\xa4here%20Infos%20zu%20DAZN%20Inhalten:%20Jetzt% 20auf%20www.dazn.com' (found at least '\xc3')
11:34:27.4221 [ePyObject] (CallObject(<bound method ActionMap.action of <Components.ActionMap.ActionMap instance at 0xaef2da30>>,('WizardActions', 'ok')) failed)

abu baniaz
05-12-20, 13:21
Version 1.4 also crashes.

There is a httplib.py file uploaded that is meant to avoid the crash



https://www.linuxsat-support.com/thread/137709-epg-youtube-trailer-translator-plugin/?postID=572506#post572506

birdman
05-12-20, 13:47
Seems to be a problem with the url and control charactersExcept they're not control characters. These are utf-8 characters.


\x3\xbc is ü
\x3\xb6 is ö


So there's a character-set problem somewhere.

ccs
05-12-20, 14:04
There's something similar on OpenPLi, can't find the commit it refers to.....


I know the problem. Unfortunately twisted added a security check whether URLs are valid. For them valid means no special character is included. Means a URL with ä,ü,ö for example is invalid, even if normal browsers can handle it :(

I thought we had reverted the commit here. But it seems we haven't. See what we can do...


https://forums.openpli.org/topic/79889-openpli-release-candidate-80-available/?view=findpost&p=1281721

gilvey
05-12-20, 14:47
so is there a quick fix for this and if so how? or will a fix be implemented in the next openvix update. would rolling back to an older version of openvix solve anything?

birdman
06-12-20, 02:26
I know the problem. Unfortunately twisted added a security check whether URLs are valid. For them valid means no special character is included. Means a URL with ä,ü,ö for example is invalid, even if normal browsers can handle itOr encode all bytes in the url > 0x7f as %xx?

ccs
06-12-20, 11:07
Or encode all bytes in the url > 0x7f as %xx?

Maybe this is the commit/revert I was looking for.....


https://github.com/OpenPLi/openpli-oe-core/blob/2c04c797461152d7d3383dcf8c4b3bbf2fdbce3a/meta-openpli/recipes-devtools/python/python-twisted/0001-Revert-Prevent-CRLF-injections-described-in-CVE-2019.patch

twol
06-12-20, 11:56
That fix is on OE-A 4.4 unfortunately

simonc
06-12-20, 12:05
If it's ceased to function on 5.3, then, I'd suspect that google have changed something (assuming it uses Google translate) and the plugin isn't getting a response.

As for 5.4, it seems that Python itself has had a security patch of some sort between 5.3 and 5.4, and that means the plugin should now be URL encoding anything it sends out as a query.

Either way, the plugin author needs to do some work. You might find the patch Abu mentioned on the linuxsat forum helps while you're waiting. If you do patch httplib.py from that link, don't believe the poster thgat says that it's "ATV's stupid changes": This has been triggered by the people that maintain Python itself. The plugin should actually have been doing the URL encoding properly in the first place, but has been getting away with it until now.

ccs
06-12-20, 12:45
That fix is on OE-A 4.4 unfortunately

I thought that's what ViX was now based on? :confused:

This, I think, is the original commit in OE-Core 4.4


https://github.com/oe-alliance/oe-alliance-core/commit/54b7305219fdf7e372678637cba3f6f6ad27b42f

Willo3092
06-12-20, 13:14
Either way, the plugin author needs to do some work.

There was mention on another forum that the plugin author is now deceased. Not sure if it's true or not :confused:

ccs
06-12-20, 13:17
.... and a "temporary" fix here...


https://github.com/oe-alliance/oe-alliance-core/commit/eb924b4b2d3ef5a0c6e27f8fc1b85b32d638ce5e#diff-0a83f8bbd65fe05f23213473c86a6d79909d86cc0128ea9949 1b332be550e6de

simonc
06-12-20, 15:47
Seems the wrong way round, patching the system to make a plugin work :confused:

I suppose you have to if there's no source for the plugin and not much chance of it surfacing. Reverse the compiled pyo?

birdman
07-12-20, 02:27
Either way, the plugin author needs to do some work.But not much: urllib.quote() will %xx-quote multi-byte utf-8 characters.

birdman
07-12-20, 02:31
Seems the wrong way round, patching the system to make a plugin work :confused:It also seems odd to write lots of Vix/OE -specific code when there is a library function already written to do it all for you.

Mind you, I reckon that urllib2.urlopen() should have had a "please_escape" option flag to do it for you. If nothing else it would remind callers that it's something that needs to be considered.

abu baniaz
07-12-20, 03:43
I have uploaded the latest ipk on the existing thread for it
ttps://www.world-of-satellite.com/showthread.php?31010-EPG-translator

The .py file is included in the installation. We can fix it and add the amended file to 3rd party feeds or add it to github repo and build from there so that others can contribute to it too. However, Alphabet may not be too happy as they had DMCA take downs for other youtube plugins for a while

simonc
07-12-20, 10:13
The recent youtube plugin takedown was due to a complaint about the library it uses being used for content piracy. The complaint was rejected because youtube-dl just uses the same APIs that any set top box would use to integrate with youtube and isn't circumventing any copy protection.

So, for the translate plugin, nothing to worry about :-)

malcolmp
07-12-20, 11:31
Hi Abu, will this help with translator not translating?

gilvey
07-12-20, 13:01
Still no translation for me with 1.4rc1

Willo3092
07-12-20, 13:16
Still crashing for me

61006

ronand
07-12-20, 13:29
I don't think anything was changed - abu just posted the latest version for reference AFAIK

birdman
07-12-20, 13:50
Is this any better?

61007

Willo3092
07-12-20, 14:04
It doesn't crash but doesn't translate anything either.

<917942.1647> 13:01:09.9096 [InfoBarGenerics] Key: 399 (Make) KeyID='KEY_GREEN' Binding='('GREEN',)'.
<917942.3950> 13:01:10.1400 [eInputDeviceInit] 0 18f (399) 1
<917942.3951> 13:01:10.1400 [eRCDeviceInputDev] emit: 0
<917942.3957> 13:01:10.1406 [InfoBarGenerics] Key: 399 (Break) KeyID='KEY_GREEN' Binding='('GREEN',)'.
<917942.4090> 13:01:10.1539 [Skin] Processing screen 'PluginBrowser', position=(0, 0), size=(1920 x 1080) for module 'PluginBrowser'.
<917942.4204> 13:01:10.1653 [Skin] Processing screen 'PluginBrowserSummary' from list 'PluginBrowserSummary, ScreenSummary, PluginBrowser_summary, SimpleSummary', position=(0, 0), size=(480 x 320) for module 'PluginBrowserSummary'.
<917942.4218> 13:01:10.1667 [Screen] Showing screen '['PluginBrowserSummary', 'ScreenSummary', 'PluginBrowser_summary', 'SimpleSummary']'.
<917942.4254> 13:01:10.1703 [Screen] Showing screen 'PluginBrowser'.
<917943.4473> 13:01:11.1922 [eInputDeviceInit] 1 6c (108) 1
<917943.4474> 13:01:11.1923 [eRCDeviceInputDev] emit: 1
<917943.4477> 13:01:11.1927 [InfoBarGenerics] Key: 108 (Make) KeyID='KEY_DOWN' Binding='('DOWN',)'.
<917943.6781> 13:01:11.4230 [eInputDeviceInit] 0 6c (108) 1
<917943.6781> 13:01:11.4231 [eRCDeviceInputDev] emit: 0
<917943.6786> 13:01:11.4235 [InfoBarGenerics] Key: 108 (Break) KeyID='KEY_DOWN' Binding='('DOWN',)'.
<917943.7970> 13:01:11.5419 [eInputDeviceInit] 1 6c (108) 1
<917943.7970> 13:01:11.5420 [eRCDeviceInputDev] emit: 1
<917943.7974> 13:01:11.5423 [InfoBarGenerics] Key: 108 (Make) KeyID='KEY_DOWN' Binding='('DOWN',)'.
<917944.0280> 13:01:11.7730 [eInputDeviceInit] 0 6c (108) 1
<917944.0281> 13:01:11.7730 [eRCDeviceInputDev] emit: 0
<917944.0286> 13:01:11.7735 [InfoBarGenerics] Key: 108 (Break) KeyID='KEY_DOWN' Binding='('DOWN',)'.
<917944.0660> 13:01:11.8110 [eInputDeviceInit] 1 6c (108) 1
<917944.0661> 13:01:11.8110 [eRCDeviceInputDev] emit: 1
<917944.0663> 13:01:11.8113 [InfoBarGenerics] Key: 108 (Make) KeyID='KEY_DOWN' Binding='('DOWN',)'.
<917944.2970> 13:01:12.0419 [eInputDeviceInit] 0 6c (108) 1
<917944.2970> 13:01:12.0420 [eRCDeviceInputDev] emit: 0
<917944.2975> 13:01:12.0424 [InfoBarGenerics] Key: 108 (Break) KeyID='KEY_DOWN' Binding='('DOWN',)'.
<917944.4063> 13:01:12.1513 [eInputDeviceInit] 1 6c (108) 1
<917944.4064> 13:01:12.1513 [eRCDeviceInputDev] emit: 1
<917944.4067> 13:01:12.1516 [InfoBarGenerics] Key: 108 (Make) KeyID='KEY_DOWN' Binding='('DOWN',)'.
<917944.6370> 13:01:12.3819 [eInputDeviceInit] 0 6c (108) 1
<917944.6370> 13:01:12.3820 [eRCDeviceInputDev] emit: 0
<917944.6375> 13:01:12.3824 [InfoBarGenerics] Key: 108 (Break) KeyID='KEY_DOWN' Binding='('DOWN',)'.
<917944.7712> 13:01:12.5161 [eInputDeviceInit] 1 160 (352) 1
<917944.7712> 13:01:12.5162 [eRCDeviceInputDev] emit: 1
<917944.7715> 13:01:12.5165 [InfoBarGenerics] Key: 352 (Make) KeyID='KEY_OK' Binding='('OK',)'.
<917944.7717> 13:01:12.5166 [ActionMap] Keymap 'WizardActions' -> Action = 'ok'.
<917944.7733> 13:01:12.5183 [Skin] Parsing embedded skin '<embedded-in-translatorMain>'.
<917944.7739> 13:01:12.5188 [Skin] Processing screen '<embedded-in-translatorMain>', position=(210, 120), size=(1500 x 915) for module 'translatorMain'.
<917945.1405> 13:01:12.8855 [Skin] Processing screen 'SimpleSummary' from list 'translatorMainSummary, ScreenSummary, translatorMain_summary, SimpleSummary', position=(0, 0), size=(480 x 320) for module 'ScreenSummary'.
<917945.1421> 13:01:12.8870 [Screen] Showing screen '['translatorMainSummary', 'ScreenSummary', 'translatorMain_summary', 'SimpleSummary']'.
<917945.1430> 13:01:12.8880 [Screen] Showing screen 'translatorMain'.
<917945.1434> 13:01:12.8883 [eInputDeviceInit] 0 160 (352) 1
<917945.1434> 13:01:12.8883 [eRCDeviceInputDev] emit: 0
<917945.1437> 13:01:12.8886 [InfoBarGenerics] Key: 352 (Break) KeyID='KEY_OK' Binding='('OK',)'.
<917948.8712> 13:01:16.6162 [eEPGCache] abort non avail schedule other reading
<917948.8721> 13:01:16.6170 [eEPGCache] abort non avail FreeSat schedule_other reading
<917948.8782> 13:01:16.6231 [eEPGCache] abort non avail viasat reading
<917948.8797> 13:01:16.6247 [eEPGCache] nownext finished(1607346076)
<917957.7765> 13:01:25.5214 [eEPGCache] schedule finished(1607346085)
<917957.7768> 13:01:25.5217 [eEPGCache] stop caching events(1607346085)
<917957.7768> 13:01:25.5217 [eEPGCache] next update in 60 min
<917969.2217> 13:01:36.9667 [eConsoleAppContainer] Starting /usr/bin/grab
<917969.6577> 13:01:37.4026 [OpenWebif] page '/favicon.ico' not found

61008

birdman
07-12-20, 14:44
It doesn't crash but doesn't translate anything either.OK.
I'll have to step through it "by hand" (having nothing relevant to translate) to figure out what is (not) happening.

birdman
07-12-20, 20:09
Well, in a test I've come up with a response that contains:


Choose your poison - Joan is completely surprised when drug investigators suddenly appear at her door. They found a prescription for medication on a dead junkie that supposedly came from Joan. However, the dead person is completely unknown to her. However, it soon turns out that a stranger must have falsified the regulation. It quickly becomes clear that a certain Dr. Franny Krieg is behind the matter, but it is still not entirely clear why ...

but I now have to find out why that isn't getting to where it needs to be.

birdman
07-12-20, 20:20
How does this one fare?

61012

Willo3092
07-12-20, 21:05
Still the same I'm afraid:

<943133.0524> 20:01:05.6623 [Console] finished: sleep 2
<943133.0525> 20:01:05.6624 [eBatch] retval=0, cmds left=1, data:
<943133.0525> 20:01:05.6624
<943133.0526> 20:01:05.6625 [Console] command: mount //192.168.0.240/tv
<943133.0527> 20:01:05.6625 [eConsoleAppContainer] Starting /bin/sh
<943133.0717> 20:01:05.6816 [Console] finished: mount //192.168.0.240/tv
<943133.0718> 20:01:05.6817 [eBatch] retval=0, cmds left=0, data:
<943133.0718> 20:01:05.6817
<943133.1420> 20:01:05.7519 [eInputDeviceInit] 0 18f (399) 1
<943133.1420> 20:01:05.7519 [eRCDeviceInputDev] emit: 0
<943133.1425> 20:01:05.7524 [InfoBarGenerics] Key: 399 (Break) KeyID='KEY_GREEN' Binding='('GREEN',)'.
<943133.1561> 20:01:05.7659 [Skin] Processing screen 'PluginBrowser', position=(0, 0), size=(1920 x 1080) for module 'PluginBrowser'.
<943133.1700> 20:01:05.7799 [Skin] Processing screen 'PluginBrowserSummary' from list 'PluginBrowserSummary, ScreenSummary, PluginBrowser_summary, SimpleSummary', position=(0, 0), size=(480 x 320) for module 'PluginBrowserSummary'.
<943133.1714> 20:01:05.7813 [Screen] Showing screen '['PluginBrowserSummary', 'ScreenSummary', 'PluginBrowser_summary', 'SimpleSummary']'.
<943133.1898> 20:01:05.7997 [Screen] Showing screen 'PluginBrowser'.
<943133.7728> 20:01:06.3827 [eInputDeviceInit] 1 6c (108) 1
<943133.7728> 20:01:06.3827 [eRCDeviceInputDev] emit: 1
<943133.7733> 20:01:06.3832 [InfoBarGenerics] Key: 108 (Make) KeyID='KEY_DOWN' Binding='('DOWN',)'.
<943134.0040> 20:01:06.6139 [eInputDeviceInit] 0 6c (108) 1
<943134.0041> 20:01:06.6140 [eRCDeviceInputDev] emit: 0
<943134.0046> 20:01:06.6145 [InfoBarGenerics] Key: 108 (Break) KeyID='KEY_DOWN' Binding='('DOWN',)'.
<943134.0611> 20:01:06.6710 [eInputDeviceInit] 1 6c (108) 1
<943134.0611> 20:01:06.6710 [eRCDeviceInputDev] emit: 1
<943134.0614> 20:01:06.6713 [InfoBarGenerics] Key: 108 (Make) KeyID='KEY_DOWN' Binding='('DOWN',)'.
<943134.2920> 20:01:06.9019 [eInputDeviceInit] 0 6c (108) 1
<943134.2920> 20:01:06.9019 [eRCDeviceInputDev] emit: 0
<943134.2925> 20:01:06.9024 [InfoBarGenerics] Key: 108 (Break) KeyID='KEY_DOWN' Binding='('DOWN',)'.
<943134.3331> 20:01:06.9430 [eInputDeviceInit] 1 6c (108) 1
<943134.3331> 20:01:06.9430 [eRCDeviceInputDev] emit: 1
<943134.3334> 20:01:06.9433 [InfoBarGenerics] Key: 108 (Make) KeyID='KEY_DOWN' Binding='('DOWN',)'.
<943134.5640> 20:01:07.1739 [eInputDeviceInit] 0 6c (108) 1
<943134.5641> 20:01:07.1740 [eRCDeviceInputDev] emit: 0
<943134.5646> 20:01:07.1745 [InfoBarGenerics] Key: 108 (Break) KeyID='KEY_DOWN' Binding='('DOWN',)'.
<943134.5882> 20:01:07.1981 [eInputDeviceInit] 1 6c (108) 1
<943134.5883> 20:01:07.1982 [eRCDeviceInputDev] emit: 1
<943134.5885> 20:01:07.1984 [InfoBarGenerics] Key: 108 (Make) KeyID='KEY_DOWN' Binding='('DOWN',)'.
<943134.8190> 20:01:07.4289 [eInputDeviceInit] 0 6c (108) 1
<943134.8191> 20:01:07.4290 [eRCDeviceInputDev] emit: 0
<943134.8196> 20:01:07.4295 [InfoBarGenerics] Key: 108 (Break) KeyID='KEY_DOWN' Binding='('DOWN',)'.
<943136.1018> 20:01:08.7117 [eInputDeviceInit] 1 160 (352) 1
<943136.1018> 20:01:08.7117 [eRCDeviceInputDev] emit: 1
<943136.1023> 20:01:08.7122 [InfoBarGenerics] Key: 352 (Make) KeyID='KEY_OK' Binding='('OK',)'.
<943136.1025> 20:01:08.7124 [ActionMap] Keymap 'WizardActions' -> Action = 'ok'.
<943136.1041> 20:01:08.7140 [Skin] Parsing embedded skin '<embedded-in-translatorMain>'.
<943136.1047> 20:01:08.7146 [Skin] Processing screen '<embedded-in-translatorMain>', position=(210, 120), size=(1500 x 915) for module 'translatorMain'.
<943136.5320> 20:01:09.1419 [Skin] Processing screen 'SimpleSummary' from list 'translatorMainSummary, ScreenSummary, translatorMain_summary, SimpleSummary', position=(0, 0), size=(480 x 320) for module 'ScreenSummary'.
<943136.5338> 20:01:09.1437 [Screen] Showing screen '['translatorMainSummary', 'ScreenSummary', 'translatorMain_summary', 'SimpleSummary']'.
<943136.5350> 20:01:09.1449 [Screen] Showing screen 'translatorMain'.
<943136.5354> 20:01:09.1453 [eInputDeviceInit] 0 160 (352) 1
<943136.5354> 20:01:09.1453 [eRCDeviceInputDev] emit: 0
<943136.5357> 20:01:09.1456 [InfoBarGenerics] Key: 352 (Break) KeyID='KEY_OK' Binding='('OK',)'.
<943138.2900> 20:01:10.8999 [eEPGCache] abort non avail schedule other reading
<943138.2906> 20:01:10.9005 [eEPGCache] abort non avail FreeSat schedule_other reading
<943138.2908> 20:01:10.9007 [eEPGCache] abort non avail viasat reading
<943138.2948> 20:01:10.9047 [eEPGCache] nownext finished(1607371270)
<943140.5195> 20:01:13.1294 [eEPGCache] schedule finished(1607371273)
<943140.5198> 20:01:13.1297 [eEPGCache] stop caching events(1607371273)
<943140.5198> 20:01:13.1297 [eEPGCache] next update in 60 min
<943174.7171> 20:01:47.3269 [eConsoleAppContainer] Starting /usr/bin/grab
<943174.9342> 20:01:47.5441 [OpenWebif] page '/favicon.ico' not found

61013

abu baniaz
07-12-20, 21:11
@original-birdman PM me if you want to remote into my box and test

It is just showing "html>" for the translated bit.

spanner123
07-12-20, 21:19
@original-birdman PM me if you want to remote into my box and test

It is just showing "html>" for the translated bit.

Not sure if I have to do anything else but that's what I'm getting.

birdman
07-12-20, 21:20
It is just showing "html>" for the translated bit.Hmmm....that's the bit that shodul have been fixed.
It's looking for the text between two html markers in the returned data, but that text is not in the current translate google output.
I should have changed it to what is there, and it works OK in my test script.

Oh wait!!! I fixed the wrong routine when copying over the changes!!!

birdman
07-12-20, 21:26
OK. Fixed both functions now....is this any better?

61014

abu baniaz
07-12-20, 21:34
That works for me but looks poor

Can you create an rc2 version. I'll add to 3rd party after

birdman
07-12-20, 21:45
That works for me but looks poorI haven't changed the looks....


Can you create an rc2 version. I'll add to 3rd party afterI can. I'll tidy it up, and add a few comments.

spanner123
07-12-20, 21:46
OK. Fixed both functions now....is this any better?

61014

I just get gibberish characters as the translation for Greek text.

abu baniaz
07-12-20, 22:16
Threads tidied up.
Please ask support questions in this thread

Downloads are in following thread:
https://www.world-of-satellite.com/showthread.php?31010-EPG-translator-(download-thread)

abu baniaz
07-12-20, 22:17
I just get gibberish characters as the translation for Greek text.

Try rc2 please

French And German working fine for me. I only have 28.2/19.2

gilvey
08-12-20, 08:04
Working here. 13,19,23.5
Brilliant, thanks

abu baniaz
08-12-20, 23:53
enigma2-plugin-extensions-translator_1.4rc2-fhd-edition_all has been added to the 3rd party repository on GitHub. Will be available on plugin server next time an image build is run

birdman
19-12-20, 15:30
The EPG Translator plugin also contains code to look for YouTube trailers.
However, this code does not work, and I do not think it could be made to work, as I don't think YT videos have streamable urls any more.

So I'm proposing that I strip out ALL of this code, so that it doesn't get in the way of the translation parts (which are working OK, have been tidied up and should be Py3-complient - or if not will be so with simple fixes).

Has anyone actually tried using the YT code recently and made it work?

abu baniaz
19-12-20, 15:49
The youtube plugin by Taapat (not this one) works on all images once yo add your own key. As well as Youtube TV plugin on OpenATV.



So I'm proposing that I strip out ALL of this code, so that it doesn't get in the way of the translation parts (which are working OK, have been tidied up and should be Py3-complient - or if not will be so with simple fixes).


Would be a good idea. Thanks. If it is just one python file to allow translation, might as well as just add it to image?


Can we keep the download thread just for downloads please?

birdman
19-12-20, 18:06
Would be a good idea. Thanks. If it is just one python file to allow translation, might as well as just add it to image?There are a few icon files too, but let's leave it as a plugin. That how it's set up to start.


Can we keep the download thread just for downloads please?I did. This is the discussion thread.

abu baniaz
19-12-20, 18:28
I did. This is the discussion thread.

No, I moved your post from download thread to discussion thread.

birdman
19-12-20, 20:00
No, I moved your post from download thread to discussion thread.Oh, sorry (and thanks).
It was meant to go into the discussion thread. I opened both to check where each was - presumably I then went to the wrong one. :-( .

birdman
22-12-20, 03:55
Copied from download section....for discussion


Works fine here :thumbsup:

I just wanted to ask if a option could be added when you use epg guide or single epg. When in either epg you scroll across to the epg your interesting in and select info it will show with red similar green add timer, if you press menu you see epg translator click it and it only shows the first epg and not the epg your on.

Could a option be added in the info option ? mapped to yellow or blue thats not being used or when selecting the epg translator it will translate the epg your on??

I beleave something was add like this in epgtranslatorlite gutemineNot 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".

ja5
22-12-20, 10:19
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

birdman
22-12-20, 12:24
Sorry i posted in the wrong sectionWell, your post was half-and-half. I was just explaining why (and to what) I was replying here.


here is the plugin.py from epgtranslatorlite_0.4-r1Thanks. Something to keep me occupied.

twol
22-12-20, 14:17
@Birdman for python 3 change code in plugin.py around line 326 to:


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):]

fixes:

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)

birdman
22-12-20, 18:53
@Birdman for python 3 change code in plugin.py around line 326 to:It's in my test scripts (or rather, a call that works for both 2 and 3 is), but somehow missed getting to the plugin itself.
I'll get it added at the next update.

birdman
23-12-20, 20:48
I just wanted to ask if a option could be added when you use epg guide or single epg. When in either epg you scroll across to the epg your interesting in and select info it will show with red similar green add timer, if you press menu you see epg translator click it and it only shows the first epg and not the epg your on.
...
I beleave something was add like this in epgtranslatorlite gutemineI can't see anything there that would do this.
Your location within an EPG view isn't available to anything outside of that EPG view.

ja5
23-12-20, 23:48
I can't see anything there that would do this.
Your location within an EPG view isn't available to anything outside of that EPG view.

Ok thanks for looking.

maybe it wasnt about the plugin but the image skin

Maybe it was adding a button linked to epgtranslator in the single epg like (show event details) then would that work ??

birdman
24-12-20, 03:20
Maybe it was adding a button linked to epgtranslator in the single epg like (show event details) then would that work ??I do have an idea about adding translations to the screen that pops-up when you press Info on an EPG.
But it's still just an idea, and may not be possible.

birdman
11-01-21, 23:39
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/showthread.php?31010-EPG-translator-(download-thread)&p=507614&viewfull=1#post507614

birdman
11-01-21, 23:50
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.

ja5
12-01-21, 19:01
Well a quick test and works fine, not found any problem yet :thumbsup:

Thanks again for you work

birdman
13-01-21, 01:21
Well a quick test and works fine, not found any problem yet :thumbsup: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...

birdman
14-01-21, 01:51
I've released rc2 at:
https://www.world-of-satellite.com/showthread.php?31010-EPG-translator-(download-thread)&p=507698&viewfull=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.

birdman
14-01-21, 16:26
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):


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
And python can use Perl regular expressions.

birdman
14-01-21, 17:48
I have come across a quirk, that I reckon I can fix.Working.

Turns out that it didn't happen all the time. [S,AD][HD] was OK. As was [S, AD].
C4 uses [AD,S].

But eventually found that EastEnders on BBC ONE (SD) triggered it, so was able to test the result.

I'll wait for other comments before updating....

ccs
14-01-21, 17:58
.... deleted, daft idea.

birdman
15-01-21, 00:28
.... deleted, daft idea.That describes some of the best ones I've had in life...

birdman
15-01-21, 00:33
I'm currently looking at changing the url-encoded query to Google with a multipart/form-data POST one (which avoids url-encoding, and has no practical length limit)
The current URL doesn't allow POSTing, but I've found one that does (and has a simple response).
Now I just need to figure out how to send such a web request in Python. The documentation isn't all that helpful. It mentions the concepts, but leaves out the details. Such is life...

EDIT: Might have to abandon this anyway, as it seems that Google complains if you make too many calls to this replacement URL. (But that might just be the result of me having made a lot of incorrect calls...)

ja5
15-01-21, 00:33
Ok not much testing but reporting what iv found so far

rc2 works fine in openvix but crashs in openatv 6.3 and 6.4
Rc1 working in vix and openatv fine but in openatv pressing +/- zap changes the channel but epg doesnt change no epg will change and then you have to exit translator.

So the changes between rc1 and rc2 effects different images. I havent testing on any other image yet

birdman
15-01-21, 02:21
Ok not much testing but reporting what iv found so far

rc2 works fine in openvix but crashs in openatv 6.3 and 6.4It is being written for Vix.


Rc1 working in vix and openatv fineOnly because you hadn't got to the parts that weren't working (see #73 (https://www.world-of-satellite.com/showthread.php?63672-EPG-Translator-(Discussion-thread)&p=507665&viewfull=1#post507665)). To fix those I had to add the parts which presumably cause the problems on other distros.
If you have any debug logs that show where the crash occurred I might be able to do something.


but in openatv pressing +/- zap changes the channel but epg doesnt change no epg will change and then you have to exit translator.That sounds very much related to why the ServiceEventTracker usage was added in rc2. The channel could change after the translator looked for its EPG.

OpenATV seems to have identical ServiceEventTracker code to Vix (well, 6.4 does, 6.5 added a fix for something last June, but I doubt that's an issue), so I don't see that being the problem.

birdman
15-01-21, 02:57
I can't see any extra functions added in rc2 that don't also exist in the OpenATV code.

So I can't see any obvious reason why rc2 might crash if rc1 didn't.

carpcat
15-01-21, 10:29
Many thanks for the updates on this plugin. It’s proving very useful!

When I run the translator on Vix, it only shows the programme description translated. Is it also possible to also have the translated programme title also showing at the top? Just a small thing, but quite important when you’re flicking through the epg using the side arrows or changing channel without using the main epg.

birdman
15-01-21, 14:55
When I run the translator on Vix, it only shows the programme description translated. Is it also possible to also have the translated programme title also showing at the top?It might be.
But I reckon the first thing to do would be to display the untranslated title (which currently isn't shown at all).

ja5
15-01-21, 16:34
Hi

Tried openeight and openpli to test it wasnt just openatv and all crash

this is from openpli

Traceback (most recent call last):
File "/usr/lib/enigma2/python/Components/ActionMap.py", line 57, in action
File "/usr/lib/enigma2/python/Screens/PluginBrowser.py", line 144, in save
File "/usr/lib/enigma2/python/Screens/PluginBrowser.py", line 148, in run
File "/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/plugin.py", line 804, in main
session.open(translatorMain, None)
File "/usr/lib/enigma2/python/mytest.py", line 300, in open
dlg = self.current_dialog = self.instantiateDialog(screen, *arguments, **kwargs)
File "/usr/lib/enigma2/python/mytest.py", line 243, in instantiateDialog
return self.doInstantiateDialog(screen, arguments, kwargs, self.desktop)
File "/usr/lib/enigma2/python/mytest.py", line 260, in doInstantiateDialog
dlg = screen(self, *arguments, **kwargs)
File "/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/plugin.py", line 382, in __init__
self.inPlayBack = self.session.nav.getCurrentlyPlayingServiceOrGroup ().isPlayback()
AttributeError: 'eServiceReference' object has no attribute 'isPlayback'
[ePyObject] (CallObject(<bound method ActionMap.action of <Components.ActionMap.ActionMap instance at 0xaf9142b0>>,('WizardActions', 'ok')) failed)

birdman
15-01-21, 18:50
Hi

Tried openeight and openpli to test it wasnt just openatv and all crash

this is from openpliThanks. That's something to work with.
Looks like I can get the same info in a compatible way given that both Vix and ATV have this snipper:


info = eServiceCenter.getInstance().info(ref)
return not not (info and info.isPlayable(ref, getPlayingref(ref)))

Although why that "not not" is there in ATV is a(n ancient) mystery.

I'll test this out, along with translating programme titles, over the weekend.

birdman
16-01-21, 02:12
Tried openeight and openpli to test it wasnt just openatv and all crash

this is from openpli

Traceback (most recent call last):
...
AttributeError: 'eServiceReference' object has no attribute 'isPlayback'I've found a different way to test for being in playback mode that should work on non-Vix distros.
And in the process I found that if I'm playing a download from iPlayer that even though it has a hand-crafted, and correct, meta file it has no Event info (even the Info button does nothing). So it now will display "Unavailable" rather than crash. Bit of a fluke to find that, as the fact that I was using such a file to test playback was just that it was the last file I'd deleted.


When I run the translator on Vix, it only shows the programme description translated. Is it also possible to also have the translated programme title also showing at the top?That's now done.

I hope to tidy up and release rc3 later today.

birdman
16-01-21, 15:44
I hope to tidy up and release rc3 later today.Slight delay: I'd forgotten about the EventView windows.

EDIT: Now working. And I've got the channel name put into the plugin's EPG browser, so if you change the channel in it you know where you are.

birdman
17-01-21, 19:07
It's here.....

It now translates Titles as well as Descriptions (in its browser and in EventView pop-ups)
It puts the current service/channel name into the Title in its EPG browser.
It might now work with ATV, etc...
Download link is at this post in the download thread (https://www.world-of-satellite.com/showthread.php?31010-EPG-translator-(download-thread)&p=507892&viewfull=1#post507892).

The ipks for rc releases will no longer be at github.

carpcat
17-01-21, 20:19
Loving the title translations and channel name additions, really helps with navigations within the plugin. I have noticed, as per the attached photo that a lot of program descriptions are not translated fully? Some are, but this is a minority. I’ve checked with rc2 version and this is translating all of the description properly so something has changed between the 2 versions.

61265

birdman
17-01-21, 20:47
Loving the title translations and channel name additions, really helps with navigations within the plugin.I was getting lost, which was why I looked into it.


I have noticed, as per the attached photo that a lot of program descriptions are not translated fullyHmmm.... That might be a result of the [...] block being at the start. I'd assumed they'd only be at the end.

Not sure where "William Goldman" came from, though.

ja5
17-01-21, 20:49
Loving the title translations and channel name additions, really helps with navigations within the plugin. I have noticed, as per the attached photo that a lot of program descriptions are not translated fully? Some are, but this is a minority. I’ve checked with rc2 version and this is translating all of the description properly so something has changed between the 2 versions.

61265

Well no crashes on any image

Channel name looks good and works fine.

same as carpcat, only on a few epg it will show no translation or missing like the picture above.

How do you call up EventView pop-ups ?

carpcat
17-01-21, 21:15
Don’t worry about the ‘William Goldman’. it was further down out of view on the original description..:)

birdman
17-01-21, 22:06
I have noticed, as per the attached photo that a lot of program descriptions are not translated fully? Some are, but this is a minority. I’ve checked with rc2 version and this is translating all of the description properly so something has changed between the 2 versions.Try rc4, now in the download thread (https://www.world-of-satellite.com/showthread.php?31010-EPG-translator-(download-thread)&p=507916&viewfull=1#post507916).

carpcat
17-01-21, 22:17
Spot on! Fully translates the description after the [..] :thumbsup:

ja5
17-01-21, 23:08
Still see the same problem

What i found if the epg is long then it wont translate ( well thats what it seems like )

Rc1 epg long translate fine
Rc3 epg long translate some ok
Rc4 epg long worse then Rc3

Have you added a size limit?

With regards to the eventview popup, Im not sure if it meant to show translated with info button but i dont see it. ( or im doing something wrong)

Thanks

ja5
18-01-21, 00:33
Still see the same problem

What i found if the epg is long then it wont translate ( well thats what it seems like )

Rc1 epg long translate fine
Rc3 epg long translate some ok
Rc4 epg long worse then Rc3

Have you added a size limit?

With regards to the eventview popup, Im not sure if it meant to show translated with info button but i dont see it. ( or im doing something wrong)

Thanks

Iv changed

text = quote(text) # url-encode the text ("quote" is a misnomer)
if len(text) > 2000: text = text[0:2000] # Need limit for uri

text = quote(text) # url-encode the text ("quote" is a misnomer)
if len(text) > 3000: text = text[0:3000] # Need limit for uri

Now long epg works.

birdman
18-01-21, 01:15
Well no crashes on any imageGood. Nice to know.


How do you call up EventView pop-ups ?I press the Info key when watching a channel (or from a Single, Multi or GRID EPGlist).
But apparently not all boxes have an Info key, so have some magic related to the EPG key.

birdman
18-01-21, 01:18
Have you added a size limit?No. It's always been there - I inherited it.
Although if you actually hit the limit there is a possibility of generating an error that could result in no translation.
I wasn't really expecting anything to have >2000 chars of title+description. (Has someone posted the script instead of the description?)


With regards to the eventview popup, Im not sure if it meant to show translated with info button but i dont see it. ( or im doing something wrong)Once it has popped up you can toggle translate/not-translate with the Text key.
It's noted in the README file in the plugin's installation directory.

birdman
18-01-21, 01:20
Iv changed

text = quote(text) # url-encode the text ("quote" is a misnomer)
if len(text) > 2000: text = text[0:2000] # Need limit for uri

text = quote(text) # url-encode the text ("quote" is a misnomer)
if len(text) > 3000: text = text[0:3000] # Need limit for uri

Now long epg works.Thanks for that. I'll play around with some test code to see whether there is a real limit.

Along with looking at translations into Arabic (no-one may be using hem, but it annoys me that they are wrong when I can probably fix them).

birdman
18-01-21, 03:47
Rc1 working in vix and openatv fine but in openatv pressing +/- zap changes the channel but epg doesnt change no epg will change and then you have to exit translator.Is that still an issue?

ja5
18-01-21, 05:15
Is that still an issue?

Yes thats works on rc3 and rc4. The only thing that doesnt work in eventview popup on rc3 or rc4 on openatv

Tbh i couldnt get rc4 to work in vix with eventview. went back to rc3 and works reallt good. ( well done )

Had a quick try of openeight and pli and epg wont translate and no eventview either, but i will try again tomorrow.

ja5
18-01-21, 15:32
Hi birdman

Openeight and pli ( 1.5-testing and 2,0 works fine. (rc1 rc2 crash) and seems rc3 and rc4 doesnt translate epg ) ( couldnt test evenview )

Openatv rc3 and rc4 work but no eventview ( but looks like it trys)

Openvix rc3 and eventview work, rc4 better long epg but no eventview

Im just reporting but good to see evenview working in vix :)

birdman
18-01-21, 17:50
text = quote(text) # url-encode the text ("quote" is a misnomer)
if len(text) > 3000: text = text[0:3000] # Need limit for uri

Now long epg works.The actual limit (just tested it) is somewhere between 7656 and 7707 (don't need any more accuracy than that).
So I'll set it to 7000 and add code to split the query (on a suitable boundary, into similar request sizes) beyond that.

birdman
18-01-21, 18:01
Openeight and pli ( 1.5-testing and 2,0 works fine. (rc1 rc2 crash) and seems rc3 and rc4 doesnt translate epg ) ( couldnt test evenview )The only real difference is the (required) use of a ServiceEventTracker callback to set the EPG text. No idea why it isn't working.


Openatv rc3 and rc4 work but no eventview ( but looks like it trys)What do you mean by it trying eventview? This is actually skin dependent, as the skin has to be displaying what gets changed (and the translated title and description each get put into two different places to maximize the chance)


Openvix rc3 and eventview work, rc4 better long epg but no eventview.

Im just reporting but good to see evenview working in vix :)Weird. EventView with rc4 was working for me when I checked yesterday, but now works only sometimes.
>>Sigh<<
EDIT: Arrggghhhh!!!! I put exception handlers in to stop crashes on unexpected issues (just get no translation) and hid an error on EventView handling as a result.

birdman
18-01-21, 19:05
Updated version 2.0rc5 now in the download thread (https://www.world-of-satellite.com/showthread.php?31010-EPG-translator-(download-thread)&p=507976&viewfull=1#post507976), which should fix EventViews (and bumps the encode text length up to 7000).

ja5
19-01-21, 00:25
Traceback (most recent call last):
File "/usr/lib/enigma2/python/Components/ActionMap.py", line 57, in action
File "/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/plugin.py", line 813, in EPGTr_ToggleMode
self.setEvent(self.event)
File "/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/plugin.py", line 909, in My_setEvent
self["epg_eventname"].setText(t_title)
KeyError: 'epg_eventname'
22:25:38.1137 [ E ] python/python.cpp:210 call [ePyObject] (PyObject_CallObject(<bound method ActionMap.action of <Components.ActionMap.ActionMap instance at 0xa63071e8>>,('VirtualKeyboardActions', 'showVirtualKeyboard'))
failed)

I got this once in openatv but rebooted and didnt happen again strange.

Tried 4 different skins in openatv but no eventview popup translate, screen bar shows something happend but no translation.

no translation openeight and pli. unless you can think of a work around then have to use 2.0

Openvix works really well now, no problem with long epg etc
Even tried a few other skins and all good.

rc5 best so far, well done mate

birdman
19-01-21, 00:51
Openvix works really well now, no problem with long epg etc
Even tried a few other skins and all good.

rc5 best so far, well done mateThanks for that.
I'll take a look at OpenATV to see what I can find. If self["epg_eventname"].setText(t_title) is a KeyError then there is a significant difference there.

Since the Vix bits that are meant to be working are now working I might take a break from updates for a few days.
(Unless I come up with a possible solution for OpenATV - which looks possible after a quick check of that crash dump extract....)

ja5
20-01-21, 02:31
birdman

not sure how i did it but twice i got

Traceback (most recent call last):
< 1568.4833> 00:24:51.2751 File "/usr/lib/enigma2/python/Components/ActionMap.py", line 57, in action
< 1568.4835> 00:24:51.2753 File "/usr/lib/enigma2/python/Screens/EventView.py", line 96, in nextEvent
< 1568.4836> 00:24:51.2754 File "/usr/lib/enigma2/python/Screens/EpgSelectionGrid.py", line 208, in eventViewCallback
< 1568.4837> 00:24:51.2755 File "/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/plugin.py", line 841, in My_setEvent
< 1568.4882> 00:24:51.2800 uref = make_uref(event.getEventId(), self.currentService.getServiceName())
< 1568.4883> 00:24:51.2801 AttributeError: 'NoneType' object has no attribute 'getEventId'
< 1568.4884> 00:24:51.2802 [ePyObject] (CallObject(<bound method ActionMap.action of <Components.ActionMap.ActionMap instance at 0xaebbc620>>,('EventViewActions', 'nextEvent')) failed

[Skin] Error in screen 'EPGSelection' widget 'widget' [Skin] {ViX-Night-HD/skin.xml}: Component with name 'number' was not found in skin of screen 'EPGSelection'! Please contact the skin's author!!
[Skin] Processing screen 'EventView', position=(150, 460), size=(980 x 250) for module 'EventViewEPGSelect'.
[Screen] Warning: Skin is missing element 'epg_description' in <class 'Screens.EventView.EventViewEPGSelect'>.
[Screen] Warning: Skin is missing element 'epg_eventname' in <class 'Screens.EventView.EventViewEPGSelect'>.
[Screen] Warning: Skin is missing element 'channel' in <class 'Screens.EventView.EventViewEPGSelect'>.

works well in eventview popup then seems to stop translating (random), then change channel and works again or clearing cache works
Same thing doesnt happen in the plugin

changed to simple ten eighty and no crash

birdman
20-01-21, 14:51
< 1568.4882> 00:24:51.2800 uref = make_uref(event.getEventId(), self.currentService.getServiceName())
< 1568.4883> 00:24:51.2801 AttributeError: 'NoneType' object has no attribute 'getEventId'Ah, I'd missed that in setEvent() it checks that it actually has an Event.
I'll update my code to make the same check.

birdman
20-01-21, 19:50
2.0-rc6 is available on the download thread (https://www.world-of-satellite.com/showthread.php?31010-EPG-translator-(download-thread)&p=508099&viewfull=1#post508099).

This fixes the EventView to use generic (rather than an accidentally Vix-specific) source for translational data, which it puts into all know data fields (if they exist for the distro).

birdman
21-01-21, 01:44
2.0-rc7 is now in the download thread (https://www.world-of-satellite.com/showthread.php?31010-EPG-translator-(download-thread)&p=508109&viewfull=1#post508109).

It fixes a crash if a description is empty, and also fixes EventView windows, which were cacheing the untranslated values, not the translated ones (a result of an incomplete variable name tidy-up).

ja5
21-01-21, 02:41
2.0-rc7 is now in the download thread (https://www.world-of-satellite.com/showthread.php?31010-EPG-translator-(download-thread)&p=508109&viewfull=1#post508109).

It fixes a crash if a description is empty, and also fixes EventView windows, which were cacheing the untranslated values, not the translated ones (a result of an incomplete variable name tidy-up).

Testing on few images and can report all bugs iv reported seem gone. No random non translation also.
I will test again and see if anything shows up but so far very good.

Um i changed the self.EPGTr_translating = false to true and auto translate to english and text change to default language.
Seems to work well and no problems

Brilliant work :thumbsup:

birdman
22-01-21, 01:32
Along with looking at translations into Arabic (no-one may be using hem, but it annoys me that they are wrong when I can probably fix them).Well, I can help a little but the problem appears to be in the widget handling itself (libfribidi?).


It doesn't actually display right-to-left text properly at all (as it butts up to the left margin, when it should start on the right).
If there are any non-rtol characters present such as something which was not translated) then the word ordering goes haywire. Including, apparently, displaying the lines in the wrong order (last to first).


I can help with the second part by:


putting the start time and duration (which throw it) into a single bar at the top and then omitting it form both the original and translated text (this actually frees up additional display space).
not putting any [] props into the translation (as these really throw it off).


Juts need to tidy up the Skin_small data for this...

birdman
22-01-21, 12:56
I've put 2.01-rc8 on the download thread (https://www.world-of-satellite.com/showthread.php?31010-EPG-translator-(download-thread)&p=508247&viewfull=1#post508247).

This moves the programme time and duration to its own window above the descriptions, so that it only gets displayed once.
It allows () as well as [] groups in the property matching.
And it does not display such groups when displaying right-to-left text as their untranslated nature means they usually mess up the display.

ja5
22-01-21, 14:29
I've put 2.01-rc8 on the download thread (https://www.world-of-satellite.com/showthread.php?31010-EPG-translator-(download-thread)&p=508247&viewfull=1#post508247).

This moves the programme time and duration to its own window above the descriptions, so that it only gets displayed once.
It allows () as well as [] groups in the property matching.
And it does not display such groups when displaying right-to-left text as their untranslated nature means they usually mess up the display.

Sorry to report again but some channels showing some untranslated and translated at the same time

birdman
22-01-21, 15:26
Sorry to report again but some channels showing some untranslated and translated at the same timeThat's disappointing, and odd.
The only changes were as noted, and it's difficult to see how any of that could have led to failed translations.

Are there any entries in your debug logs that contain "[EPGTranslator-Plugin]"?

What do you mean by "at the same time" - there's only one window!?!

ja5
22-01-21, 15:43
That's disappointing, and odd.
The only changes were as noted, and it's difficult to see how any of that could have led to failed translations.

Are there any entries in your debug logs that contain "[EPGTranslator-Plugin]"?

What do you mean by "at the same time" - there's only one window!?!

There is nothing in the log or i would have reported it

Even if its plugin or eventview it will show part translation bit like the random before, i checked rc7 same channels work fine.

ja5
22-01-21, 15:55
I think i found the error

rc8
(?: # Start a group

changed same as rc7

(?:\[ # Start a group

So far all working again :p

birdman
22-01-21, 16:20
I think i found the error

rc8
(?: # Start a group

changed same as rc7

(?:\[ # Start a group

So far all working again :pThat makes no sense to me.
Not clear whether you are referring to begin_props or end_props, but both were changed to allow [ or ( to start a "property" grouping.

So:
(?:\[ # Start a group
became
(?: # Start a group
(?:\[|\() # Opening [ or (

You are starting a group a second time, which should fail, as there is (should be) no matching closer.

Could you send the text (or a screen picture) of a description that suffered? My tests (admittedly in Perl, but these are Perl regexes and it's so much easier to debug with) all work fine.

ja5
22-01-21, 16:29
That makes no sense to me.
Not clear whether you are referring to begin_props or end_props, but both were changed to allow [ or ( to start a grouping.

So:
(?:\[ # Start a group
became
(?: # Start a group
(?:\[|\() # Opening [ or (

You are starting a group a second time, which should fail.

Could you send the text (or a screen picture) of a description that suffered? My tests (admittedly in Perl, but these are Perl regxes and it's so much easier to debug with) all work fine.

I simple use notepad+ use compare and looked at what changed between rc7 and rc8

I changed back

begin_props = """
( # Start all [] groups saving
(?: # Start a group

to

begin_props = """
( # Start all [] groups saving
(?:\[ # Start a group

that is the only change i made and works.

Hope that make sense

birdman
22-01-21, 16:54
I changed back

begin_props = """
( # Start all [] groups saving
(?: # Start a group

to

begin_props = """
( # Start all [] groups saving
(?:\[ # Start a group

that is the only change i made and works.

Hope that make senseWell, no it doesn't.
Except that it might prevent the property groups being removed from the description (since nothing is going to match), which might explain it as then everything would be passed on to be translated (which can be a problem).
So it's possible that your programme descriptions are such that too much is being pulled of into the property groups.
So I really need to see one of those descriptions that fail.

ja5
22-01-21, 17:05
Well, no it doesn't.
Except that it might prevent the property groups being removed from the description (since nothing is going to match), which might explain it as then everything would be passed on to be translated (which can be a problem).
So it's possible that your programme descriptions are such that too much is being pulled of into the property groups.
So I really need to see one of those descriptions that fail.

I hoped it made sense that i copied from rc7 to rc8 I cant help you other then to report what i find.

Just try any channels on 13e or o.8w and the problem is easy to see.

birdman
22-01-21, 17:20
Just try any channels on 13e or o.8w and the problem is easy to see.Not when I only have UK Freeview, and so am not seeing any problems at all.

carpcat
22-01-21, 18:35
Can’t see any problems with translations my end after rigorously testing on 19.2E..

birdman
22-01-21, 19:02
Can’t see any problems with translations my end after rigorously testing on 19.2E..Thanks.

That's why I need an example of something which fails from someone who sees it failing.

ja5
23-01-21, 08:50
Thanks.

That's why I need an example of something which fails from someone who sees it failing.

Thanking someone that doesnt find a problem but i already said 13e


Hows this for a example
61310

birdman
23-01-21, 14:06
Hmmm...looks like it's taken everything up to the last () group (the one with Dennis Quaid in) as "properties" so stripped them off from what will be translated. I was actually looking at fixing that as the potential issue last night. So already have a fix.
I'll have an rc9 along soon-ish (with another fix related to changing the destination language I ran into last night).

Hmm...it seems that there are some "minimum match" specifiers missing from the regex I have even now. Rethinking....

abu baniaz
23-01-21, 16:31
Is it possible to use flags from /usr/share/enigma2/skin_default/countries instead of /usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/pic/flag/

birdman
23-01-21, 19:03
Is it possible to use flags from /usr/share/enigma2/skin_default/countries instead of /usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/pic/flag/Possibly. Although that is a (quite) different set of country flags.
I'll look into it after 2.01-release is out.

EDIT:
I could extend it to use all 149 languages offered by Google translate, using the system flags where they exist, or plugin ones when they don't.
What does the "Bork, bork, bork!" flag look like, I wonder...?

birdman
23-01-21, 19:09
Hmm...it seems that there are some "minimum match" specifiers missing from the regex I have even now. Rethinking....2.01-rc9 is now in the download thread (https://www.world-of-satellite.com/showthread.php?31010-EPG-translator-(download-thread)&p=508307&viewfull=1#post508307).


The regexes for pulling out () and [] groups have been changed (and should now be much better).
A bug after changing the destination language (the previous one could still be used) has been corrected.

abu baniaz
08-02-21, 09:39
@birdman, do you want the version on 3rd party feeds updated?

birdman
08-02-21, 17:37
@birdman, do you want the version on 3rd party feeds updated?Yes, please.
To the one attached here (https://www.world-of-satellite.com/showthread.php?31010-EPG-translator-(download-thread)&p=508426&viewfull=1#post508426)

There may be another one along in a few days (but not sooner than that).

abu baniaz
11-02-21, 19:14
I have added it and will be in 5.4 007 Release.
https://github.com/oe-alliance/3rdparty-plugins/commit/32facffc130319aa32c52df325ccfa902462c10a
https://github.com/oe-alliance/oe-alliance-core/commit/6c43d7a1571f26060dd471bb2018767d63d71386

abu baniaz
11-02-21, 19:22
Just for reference, this is not translating on OpenPLI for me.



[ActionMap] Keymap 'InfobarExtensions' -> Action = 'extensions'.
[Skin] Processing screen 'ExtensionsList' from list 'ExtensionsList, ChoiceBox', position=(0, 0), size=(1920 x 1080) for module 'ChoiceBox'.
[Screen] Warning: Skin is missing element 'description' in <class 'Screens.ChoiceBox.ChoiceBox'>.
[Screen] Warning: Skin is missing element 'autoresize' in <class 'Screens.ChoiceBox.ChoiceBox'>.
[Skin] Processing screen 'ChoiceBox_summary' from list 'ExtensionsList_summary, ChoiceBox_summary, SimpleSummary', position=(0, 0), size=(220 x 176) for module 'SimpleSummary'.
[Screen] Showing screen '['ExtensionsList_summary', 'ChoiceBox_summary', 'SimpleSummary']'.
[Screen] Showing screen '['ExtensionsList', 'ChoiceBox']'.
[ActionMap] Keymap 'WizardActions' -> Action = 'down'.
[ActionMap] Keymap 'DirectionActions' -> Unknown action 'downUp'! (Typo in keymap?)
[ActionMap] Keymap 'WizardActions' -> Action = 'ok'.
[Screen] Showing screen 'InfoBarSummary'.
[ActionMap] Keymap(s) 'OkCancelActions, DirectionActions, ChannelSelectBaseActions, ColorActions, MovieSelectionActions, HelpActions' -> Undefined action(s) 'bluelong'.
[Skin] Parsing embedded skin '<embedded-in-translatorMain>'.
[Skin] Processing screen '<embedded-in-translatorMain>', position=(210, 120), size=(1500 x 915) for module 'translatorMain'.
[Skin] Error: Font 'Bold' (in 'Bold;36') is not defined! Using 'Body' font ('Regular') instead.
libpng warning: iCCP: known incorrect sRGB profile
[EPGTranslator-Plugin] translateEPG error: unsupported operand type(s) for +: 'long' and 'str'
[Skin] Processing screen 'SimpleSummary' from list 'translatorMain_summary, SimpleSummary', position=(0, 0), size=(220 x 176) for module 'SimpleSummary'.
[Screen] Showing screen '['translatorMain_summary', 'SimpleSummary']'.
[Screen] Showing screen 'translatorMain'.

birdman
11-02-21, 20:16
Just for reference, this is not translating on OpenPLI for me.Doesn't look good.
I'm working on 2.02, which currently:


Overcomes the ~7500 byte limit on calls to Google translate (it splits, loops and stitches)
Uses paths relative to the plugin.py script for icons, rather than hard-wiring paths.
A few minor things.


So I'll get the fix in there for this, assuming I can find the problem.

EDIT: Difficult to see how a long could end up in any statement using + in that try clause (but I'm sure OpenPLi's enigma2 knows more than me about this).
I'll need to see whether I can get more info displayed (such as the line number for the Exception).

birdman
11-02-21, 22:56
Hi Abu,

Could you drop this file in place and repeat, please? It will display the traceback for the Exception in the debug log.

61455

At least the error was trapped and enigma2 kept running....

abu baniaz
12-02-21, 21:55
Thanks. Got this



[EPGTranslator-Plugin] translateEPG error: unsupported operand type(s) for +: 'long' and 'str'
Traceback (most recent call last):
File "/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/plugin.py", line 633, in translateEPG
to = int(self.event[epg_B] + self.event[epg_D] + 60*config.epg.histminutes.value)
TypeError: unsupported operand type(s) for +: 'long' and 'str'

birdman
12-02-21, 22:53
Not sure what it thinks is a str.

I've assumed its the .value rather than .getValue() usage. Can you please check whether this one works?

61466

I've also got it printing out the actual type of all three variables, just in case I'm wrong.
So even if it works, could you post the line containing "epg_B"?

abu baniaz
12-02-21, 23:06
That worked on PLI. Thanks.



epg_B: <type 'long'> epg_D: <type 'long'> hmval: <type 'str'> hmget: <type 'int'>

birdman
12-02-21, 23:23
That worked on PLI. Thanks.



epg_B: <type 'long'> epg_D: <type 'long'> hmval: <type 'str'> hmget: <type 'int'>
Thanks. On Vix that third value is an int too.

I'll add that in to the next release (should be ready this weekend).

abu baniaz
12-02-21, 23:25
Also tried it on ViX and still works.

birdman
13-02-21, 19:31
Next release is here. 2.02-rc1

This can handle "any" length of query to Google translate (by splitting it into pieces on a sentence boundary then putting it back together).
It adds an option to show a one-level traceback in the debug log if there is a problem translating (so I don't need to send Abu a debug version if PLi has a problem again - which it shouldn't).

There are also various internal code tidy-ups, simplifications and rationalizations.

You'll find it in the download thread. (https://www.world-of-satellite.com/showthread.php?31010-EPG-translator-(download-thread)&p=509474&viewfull=1#post509474)

Huevos
15-02-21, 16:43
@Birdman, what is your plan for this? Is it open source? Can I add it to our plugins repo so we can build it from source rather than having a precompiled, third-party IPK?

61484

61485

Huevos
15-02-21, 17:56
except Exception as e: # Use originals on a failure...
print("[EPGTranslator-Plugin] translateEPG error:", e)
if (CfgPlTr.showtrace,getValue()): traceback.print_exc()
(t_title, t_descr) = (title, descr)

This line here:

if (CfgPlTr.showtrace,getValue()): traceback.print_exc()

You've got a comma in there.

I also got this:

[EPGTranslator-Plugin] translateEPG error: need more than 1 value to unpack

birdman
16-02-21, 02:49
except Exception as e: # Use originals on a failure...
print("[EPGTranslator-Plugin] translateEPG error:", e)
if (CfgPlTr.showtrace,getValue()): traceback.print_exc()
(t_title, t_descr) = (title, descr)

This line here:

if (CfgPlTr.showtrace,getValue()): traceback.print_exc()
You've got a comma in there.!!!!????
How did that get there???
Fix along shortly....



I also got this:

[EPGTranslator-Plugin] translateEPG error: need more than 1 value to unpackWhich means it failed to translate - somehow. This is the message from a split() when what it is splitting on isn't there.
I'm still used to Perl, which does the more friendly option of setting the empty bits to undef.
But either way, it will have failed to translate and so have little or nothing to show.

birdman
16-02-21, 03:35
2.02-rc2, with the type fixed is now in the download thread (https://www.world-of-satellite.com/showthread.php?31010-EPG-translator-(download-thread)&p=509646&viewfull=1#post509646).

birdman
16-02-21, 03:38
@Birdman, what is your plan for this? Is it open source?
Well, the original code came from a now defunct source. As far as I'm concerned all of my bits are open source.


Can I add it to our plugins repo so we can build it from source rather than having a precompiled, third-party IPK?In theory, yes; but there isn't any method there at the moment to pre-compile it.

Huevos
16-02-21, 13:04
In theory, yes; but there isn't any method there at the moment to pre-compile it.Don't worry about that. I'll get that bit working.

Huevos
17-02-21, 13:14
I've added to oe-alliance-plugins.
https://github.com/oe-alliance/oe-alliance-plugins/tree/master/EPGTranslator

Should be in the Release build.

One minor change, I have added button labels... doesn't affect the embedded skin.

birdman
17-02-21, 14:02
I've added to oe-alliance-plugins.
https://github.com/oe-alliance/oe-alliance-plugins/tree/master/EPGTranslatorSo does that means my git repository is now redundant (which is fine by me) and any future development should go via oe-alliance-plugins?

Huevos
17-02-21, 17:03
So does that means my git repository is now redundant (which is fine by me) and any future development should go via oe-alliance-plugins?

Well I do most of my development in a fork... but the fork has to follow the file structure of the master otherwise it will not be possible to share commits in either direction. So as far as using your repo to send PRs to the plugin repo that would not be possible.

birdman
17-02-21, 17:36
Well I do most of my development in a fork... but the fork has to follow the file structure of the master otherwise it will not be possible to share commits in either direction. So as far as using your repo to send PRs to the plugin repo that would not be possible.That's what I meant.
I already have a fork of oe-alliance-plugins (I think - if not I'll make one).
And I'll remove my Vix-EPGTranslator repository from github at some point in the near(ish) future.

Huevos
18-02-21, 16:15
Had a bit of a problem. 3rdparty package was there in parallel. Gone now.

Huevos
18-02-21, 16:18
61516

61517

Huevos
21-02-21, 18:46
@Birdman, Tony has tested this in an OpenViX python 3 build and it appears to work fine so I have pushed it to the python3 branch.

https://github.com/oe-alliance/oe-alliance-plugins/commit/c7c7325e152eb8c432b537aee0252d326c8e5dde

birdman
21-02-21, 20:20
@Birdman, Tony has tested this in an OpenViX python 3 build and it appears to work fine so I have pushed it to the python3 branch.

https://github.com/oe-alliance/oe-alliance-plugins/commit/c7c7325e152eb8c432b537aee0252d326c8e5ddeThanks.
Except that is missing the latest fix in master (for EIT separator oddities screwing up Google) that went in yesterday (along with switching the version string to a release version).

Huevos
21-02-21, 23:19
Thanks.
Except that is missing the latest fix in master (for EIT separator oddities screwing up Google) that went in yesterday (along with switching the version string to a release version).I cocked it up in the other branch too.

I got it right the first time and then someone decided to rename the branch and I couldn't push it. Anyway fixed now (I hope).

Huevos
21-02-21, 23:23
Also added the TEXT key icon in EventView for skins that have auto buttons.

61549

Rob van der Does
22-02-21, 06:58
Also added the TEXT key icon in EventView for skins that have auto buttons.

What is TEXT supposed to do in that screen? Doesn't seem to do anything here.

Huevos
22-02-21, 08:45
It toggles the translation.

61556

61557

Rob van der Does
22-02-21, 11:32
I took the latest file from the repro, but TEXT doesn't show and doesn't work.

birdman
22-02-21, 12:17
I took the latest file from the repro, but TEXT doesn't show and doesn't work.What langugae have you set for the destination? If it's the same as the source then nothing will appear to happen.
Also, make sure you are in the correct type of EventView. In some of them it has no effect (but you'll get and "Enter Date and Time" box instead - still trying to find a solution to that).

Rob van der Does
22-02-21, 14:13
Source = automated (and was English for the service I tried)
Target = Dutch, and indeed showed Dutch

EPGTranslator was opened from the pluginbrowser.

birdman
22-02-21, 14:17
Source = automated (and was English for the service I tried)
Target = Dutch, and indeed showed Dutch

EPGTranslator was opened from the pluginbrowser.In the pluginbrowser Text does nothing, as the text is already translated.

If you are in an EventView window it will toggle not-translating/translating.

abu baniaz
22-02-21, 14:32
So press Info, then text and you get translated EPG. Works well. Many thanks. Would work even better if it translated by default when pressing Info instead of having to follow it up with a Text push.

Rob van der Does
22-02-21, 15:39
In the pluginbrowser Text does nothing, as the text is already translated.

If you are in an EventView window it will toggle not-translating/translating.
Ah, indeed, my misunderstanding. Works fine :thumbsup:


So press Info, then text and you get translated EPG. Works well. Many thanks. Would work even better if it translated by default when pressing Info instead of having to follow it up with a Text push.
And now I understand this post, which I support wholeheartedly! A setting that allows the text in eventview to be translated by default would be a great improvement.

birdman
22-02-21, 17:33
Many thanks. Would work even better if it translated by default when pressing Info instead of having to follow it up with a Text push.I'm sure it could be an option.
Presumably you'd just want it to pop-up translated, but still be able to toggle?
So this would just be a case of inverting the starting state and adding a suitable menu option.

Part of the issue here is that it doesn't know what language the real EPG is in so it ALWAYS needs to call Google to translate even if its already in the destination language. Which is unnecessary if a lot of your EPG is in the language you want anyway.

birdman
22-02-21, 17:34
FYI: It seems that he EPG Translator that went into 5.4.007 is broken. (Same in OpenATV)
This was the first compiled version, which contains code that only works for source files.

abu baniaz
22-02-21, 17:44
Presumably you'd just want it to pop-up translated, but still be able to toggle?

Yes, I think that is logical.

OpenATV do nightly builds, so not a big deal for them. Not sure when the next ViX Release will be. I've asked.

Huevos
22-02-21, 18:40
Rob, have you deliberately got a transparent border around your buttons?

61572

Rob van der Does
23-02-21, 15:06
I'm sure it could be an option.
Presumably you'd just want it to pop-up translated, but still be able to toggle?
So this would just be a case of inverting the starting state and adding a suitable menu option.
That sounds great!



Part of the issue here is that it doesn't know what language the real EPG is in so it ALWAYS needs to call Google to translate even if its already in the destination language. Which is unnecessary if a lot of your EPG is in the language you want anyway.
True, but would that be a problem? As long as this is guarded against internet not being available, I see no problem in a little bit extra data transpot.


Rob, have you deliberately got a transparent border around your buttons?
Most certainly not deliberate; and I don't see that on my OLED TV's.

Huevos
25-02-21, 00:51
Would work even better if it translated by default when pressing Info instead of having to follow it up with a Text push.This is not a good idea. It would mean every text displayed in EventView would be sent to Google for translating, even if the source and destination language are one and the same.

Rob van der Does
25-02-21, 05:58
Hence my reaction:

True, but would that be a problem? As long as this is guarded against internet not being available, I see no problem in a little bit extra data transport.






Most certainly not deliberate; and I don't see that on my OLED TV's.
How did you manage to see that? I've really never seen that in Magic.

birdman
25-02-21, 13:49
True, but would that be a problem? As long as this is guarded against internet not being available, I see no problem in a little bit extra data transpot.If it's an option it's only a problem if you chose to use it.
Translation problems (of any sort) are "handled" (you either get a partial translation, or the original untranslated text), but there might be a delay.

And since it caches results if you look at something for a second time it will just use what it already has.

birdman
25-02-21, 17:12
If it's an option it's only a problem if you chose to use it.

https://github.com/oe-alliance/oe-alliance-plugins/pull/396

Huevos
25-02-21, 21:19
I don't see that on my OLED TV's.It will show on any TV when the button is not over a black background.

61602

In S1080 it is not present. I can't see the cause at the moment.

61604

Rob van der Does
26-02-21, 10:10
I can't reproduce it and I've never seen it.
Nor can I see where that would come from.


Edit: Oops, now I have this too :confused:

Rob van der Does
26-02-21, 10:28
Found it: https://github.com/OpenViX/skins/commit/345458bd769c53b7d0392adcc0500018f17f155c

Huevos
26-02-21, 17:42
Cool .