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 5 of 12 FirstFirst ... 34567 ... LastLast
Results 61 to 75 of 180

Thread: EPG Translator (Discussion thread)

  1. #61
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,779
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by abu baniaz View Post
    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. :-( .
    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. #62
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,779
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Copied from download section....for discussion

    Quote Originally Posted by ja5 View Post
    Works fine here

    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 gutemine
    Not sure whether the Translator plugin can find out where you are.
    The other thing that you might spot is that it can go back to before your EPG display actually starts. Just keep going forward and eventually (after the configurable 20 items) you'll loop back to a few hours in the past.

    But I'll take a look.

    As for epgtranslatorlite, the only copy I can see is at linuxsat-support, and any attempt to download it just produces "Access Denied".
    Last edited by birdman; 22-12-20 at 04:22.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  3. #63

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

  4. #64
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,779
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by ja5 View Post
    Sorry i posted in the wrong section
    Well, 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-r1
    Thanks. Something to keep me occupied.
    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. The Following User Says Thank You to birdman For This Useful Post:

    ja5 (22-12-20)

  6. #65
    twol's Avatar
    Title
    Moderator
    Join Date
    Apr 2012
    Posts
    8,412
    Thanks
    996
    Thanked 2,894 Times in 2,247 Posts
    @Birdman for python 3 change code in plugin.py around line 326 to:

    Code:
            try:
                if sys.version_info >= (3, 0):
                    output = urlopen(request, timeout=20).read().decode()
                else:
                    output = urlopen(request, timeout=20).read()
                data = output[output.find(before_trans) + len(before_trans):]
    fixes:
    Code:
      File "/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/plugin.py", line 275, in __init__
        self.helptext['en'] = self.get_translation(self.base_helptext, from_lg='en', to_lg='en')
      File "/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/plugin.py", line 328, in get_translation
        data = output[int(output.find(before_trans) + len(before_trans)):]
    TypeError: argument should be integer or bytes-like object, not 'str'
    [ePyObject] (CallObject(<bound method ActionMap.action of <Components.ActionMap.ActionMap object at 0xb1a47988>>,('WizardActions', 'ok')) failed)
    Last edited by twol; 22-12-20 at 14:19.
    Gigablue Quad 4K & UE 4K
    .........FBC Tuners:
    ------------------> GT-Sat unicable LNB to 1.5M dish(28.2E)
    ------------------> Gigablue unicable LNB to 80 cm dish(19.2E)
    .......................> FBC & DVB-S2X into 90cm dish (27.5W) Opticum robust Unicable LNB
    AX HD61, Edision Osmio 4K+, Zgemma H9Combo, Octagon SF8008 , gbtrio4k, h9se using unicable ports
    Zgemma H9 C/S into Giga4K

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

  9. #68

    Title
    Member
    Join Date
    Dec 2011
    Posts
    89
    Thanks
    34
    Thanked 22 Times in 20 Posts
    Quote Originally Posted by birdman View Post
    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 ??
    Last edited by ja5; 24-12-20 at 00:18.

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

  11. #70
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,779
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    I only meant to fix the initial bug to get this working, but having got an idea as to how it works I might as well make a few simple improvements(?).

    I've made changes and have posted a test release at:

    https://www.world-of-satellite.com/s...l=1#post507614
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

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

    abu baniaz (12-01-21),cactikid (14-01-21)

  13. #71
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,779
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    The reason that only some EventView windows can be translated is that the others have the key-bindings from the underlying EPG which fired them off, and =so teh Text button fires up an "Enter date/Time window".
    I haven't (yet?) been able to find a way around this. And when I was looking things didn't happen the way I expected (the windows never seem to die - is there a memory leak there?).

    So I decided to release what did work (or at least seemed to) and look at the rest in a more leisurely way.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  14. The Following 2 Users Say Thank You to birdman For This Useful Post:

    abu baniaz (12-01-21),ja5 (12-01-21)

  15. #72

    Title
    Member
    Join Date
    Dec 2011
    Posts
    89
    Thanks
    34
    Thanked 22 Times in 20 Posts
    Well a quick test and works fine, not found any problem yet

    Thanks again for you work

  16. #73
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,779
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by ja5 View Post
    Well a quick test and works fine, not found any problem yet
    But I have if you invoke the EPG browser while a recording is running.

    I've fixed the crash, but it's now in a state whereby this happens:
    • start playing a recording
    • start the EPG translation browser (blue, then select the plugin)
    • press ch+ (or ch-) - you'll see "No event information" as text (plus its translation).
    • press ch+ (or ch-) again. This will take you to the live channel 1-up (or -down) from the channel that was displaying before you started to play the recording. (What description you get here is variable...)
    • Press Exit to leave the translation plugin
    • If you now press EPG that display thinks you are on the original channel
    • But you are actually showing the channel two away from it (you have pressed ch+/- twice)
    • and now ch+ (ch-) no longer work
    • until you press the button to stop playback, that will take you back to your movie list (if that is how you have things configured)
    • and exiting from that takes you back to the channel whence you started.


    Weird. But until I fix the key-bindings it's not remotely correct.

    EDIT: I think I've fixed that too (I now get red crosses for ch+/- when a recording is running), but needs a bit more testing and (probably) a tidy up.
    Indeed, as I type I've found a similar oddity if timeshift is running...
    Last edited by birdman; 13-01-21 at 02:01.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  17. #74
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,779
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    I've released rc2 at:
    https://www.world-of-satellite.com/s...l=1#post507698
    which fixes the problems in rc1.

    The oddity with timeshift was fixed when I came across the ServiceEventTracker which allows you to add a callback when the service (channel) has actually changed, which can be some time after your code originally requested it. Very useful...

    Any comments in this thread please.

    PS: Another change I've made to the code is to add lots of comments (currently 25% of the lines - up from 1%) so other people may have some idea of what is going on.
    Last edited by birdman; 14-01-21 at 03:46.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  18. The Following 2 Users Say Thank You to birdman For This Useful Post:

    abu baniaz (14-01-21),ja5 (14-01-21)

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

    Code:
       my ($desc, $prop) = ($t =~ / 
    (.*?)                       # The real description 
    \s*                         # Optional whitespace 
    (                           # Start all [] groups saving 
     (?:\[                      # Start a group 
      (?:[^,]{1,3},)*           # Leading tags (trailing ,) 
      (?:[^,]{1,3})             # final tag (no ,) 
      \]\s*                     # end a prop 
     )*                         # end a group - and repeat 
    )                           # End all [] groups saving 
    \s*$/x);                    # to EOL and RE options
    And python can use Perl regular expressions.
    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:

    Willo3092 (14-01-21)

Page 5 of 12 FirstFirst ... 34567 ... 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.