Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Page 6 of 12 FirstFirst ... 45678 ... LastLast
Results 76 to 90 of 180

Thread: EPG Translator (Discussion thread)

  1. #76
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,780
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by birdman View Post
    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....
    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

  2. #77
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    .... deleted, daft idea.
    Last edited by ccs; 14-01-21 at 18:22.

  3. #78
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,780
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by ccs View Post
    .... deleted, daft idea.
    That describes some of the best ones I've had in life...
    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

  4. #79
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,780
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    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...)
    Last edited by birdman; 15-01-21 at 02:13.
    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

  5. #80

    Title
    Member
    Join Date
    Dec 2011
    Posts
    89
    Thanks
    34
    Thanked 22 Times in 20 Posts
    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

  6. #81
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,780
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by ja5 View Post
    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
    It is being written for Vix.

    Rc1 working in vix and openatv fine
    Only because you hadn't got to the parts that weren't working (see #73). 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.
    Last edited by birdman; 15-01-21 at 02:33.
    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

  7. #82
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,780
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    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.
    Last edited by birdman; 15-01-21 at 03:12. Reason: Remove incorrect update
    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

  8. #83

    Title
    Member
    Join Date
    Feb 2020
    Posts
    52
    Thanks
    19
    Thanked 9 Times in 6 Posts
    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.

  9. #84
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,780
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by carpcat View Post
    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).
    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

  10. The Following User Says Thank You to birdman For This Useful Post:

    carpcat (15-01-21)

  11. #85

    Title
    Member
    Join Date
    Dec 2011
    Posts
    89
    Thanks
    34
    Thanked 22 Times in 20 Posts
    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)
    Last edited by ja5; 15-01-21 at 16:38.

  12. The Following 2 Users Say Thank You to ja5 For This Useful Post:

    abu baniaz (15-01-21),birdman (15-01-21)

  13. #86
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,780
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by ja5 View Post
    Hi

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

    this is from openpli
    Thanks. 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:

    Code:
        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.
    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

  14. The Following User Says Thank You to birdman For This Useful Post:

    ja5 (15-01-21)

  15. #87
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,780
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by ja5 View Post
    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.

    Quote Originally Posted by carpcat View Post
    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.
    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

  16. The Following 3 Users Say Thank You to birdman For This Useful Post:

    abu baniaz (16-01-21),carpcat (16-01-21),Willo3092 (16-01-21)

  17. #88
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,780
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by birdman View Post
    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.
    Last edited by birdman; 16-01-21 at 22:14.
    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

  18. The Following User Says Thank You to birdman For This Useful Post:

    ja5 (16-01-21)

  19. #89
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,780
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    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.

    The ipks for rc releases will no longer be at github.
    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

  20. The Following User Says Thank You to birdman For This Useful Post:

    carpcat (17-01-21)

  21. #90

    Title
    Member
    Join Date
    Feb 2020
    Posts
    52
    Thanks
    19
    Thanked 9 Times in 6 Posts
    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.

    67C27808-3820-412E-85E6-88B947752086.jpg
    Last edited by carpcat; 17-01-21 at 20:22.

Page 6 of 12 FirstFirst ... 45678 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.