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 8 FirstFirst ... 34567 ... LastLast
Results 61 to 75 of 106

Thread: VPS geht nicht

  1. #61
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,829
    Thanks
    239
    Thanked 1,664 Times in 1,311 Posts
    Anyway, back to why there is no VPS option in one-off timers.

    Part of the problem had been tracked down.

    I'm working on a solution - which is 1 line in Vix (but where it would be "out of place") and somewhat more than that in the plugin (which is the place that has caused the requirement).
    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,829
    Thanks
    239
    Thanked 1,664 Times in 1,311 Posts
    Quote Originally Posted by birdman View Post
    I'm working on a solution.
    I think I have one. ("It works for me")
    You'll need to wait until later today to find out what it is - it's getting late...

    EDIT: Working on instant records too.
    Last edited by birdman; 19-02-21 at 03:27.
    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. The Following 2 Users Say Thank You to birdman For This Useful Post:

    Huevos (19-02-21),ronand (19-02-21)

  4. #63
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,829
    Thanks
    239
    Thanked 1,664 Times in 1,311 Posts
    Here is the "fixed" code.

    Modifications.py

    (goes in /usr/lib/enigma2/python/Plugins/SystemPlugins/vps)

    I'd be grateful if others could check it.
    In particular I'd like it to be checked on OpenATV - as that still uses the original createSetup() call and so has no TimerBaseEntry.
    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. #64
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,829
    Thanks
    239
    Thanked 1,664 Times in 1,311 Posts

    The Explanation

    The problem was that the "[(Power)TimerEntry] Refactor to use common base classes" change added a TimerBaseEntry class whose createConfig() needs to be called before Setup.__init__() is called.

    But the VPS plugin ends up intercepting the createConfig() call in TimerEntry and expects self.session to have been set after it calls the original code - but it no longer is.
    Not only that, the createConfig() call doesn't actually have access to the session parameter, so can't fudge it in.

    The 1-line solution I mentioned was to modify Vix enigma2 code to set self.session in TimerEntryBase.__init__(), but that is rather messy as Vix has no reason at all to do that - it's already calling the correct code to set things correctly for Vix.

    The solution is to check whether TimerEntryBase exists (if it doesn't, which is the case on OpenATV, the original code still works) and if so, intercept the TimerEntryBase.__init__() call and set self.session there.
    Which puts the setting where it is needed - in the plugin.
    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

  6. #65
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    I've had a quick try with default vps settings, add timer epg/green still not remembering enable vps=yes, using 5.4.007.009

    The vps.xml file gets created, but hasn't been updated since the first attempt.

  7. #66
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,829
    Thanks
    239
    Thanked 1,664 Times in 1,311 Posts
    Quote Originally Posted by ccs View Post
    I've had a quick try with default vps settings, add timer epg/green still not remembering enable vps=yes, using 5.4.007.009

    The vps.xml file gets created, but hasn't been updated since the first attempt.
    True.

    But at least the option was available in a one-off timer for you to get this far, so still progress.
    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
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Quote Originally Posted by birdman View Post
    True.

    But at least the option was available in a one-off timer for you to get this far, so still progress.
    The option was always there but you couldn't change its value.

  9. #68
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,829
    Thanks
    239
    Thanked 1,664 Times in 1,311 Posts
    Quote Originally Posted by ccs View Post
    The option was always there but you couldn't change its value.
    No, in 5.4 you couldn't see the option with a one-off timer.

    timers_vps.xml is the file it should be written to, but when that gets written no timer has vps enabled...
    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. #69

    Title
    ViX Beta Tester
    Join Date
    Apr 2011
    Location
    Ireland
    Posts
    2,049
    Thanks
    404
    Thanked 668 Times in 547 Posts
    Testing on 5.4.006 (release) on a H7. Set up a one-off recording from the epg. VPS option is there (and was set to NO). Changed it to YES to enable and it fails the vps check as expected. But it is switching back to NO unlike on 5.3 where it does stick.
    Zgemma H7S running OpenVIX 6.2, Darkmotor, Triax TD110 dish, Inverto Black Ultra dual lnb
    LG 50UM7450 4K TV, Pioneer VSX-534 Atmos AVR , Panasonic UB820 region free 4K Bluray & a PS4.

  11. #70
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Quote Originally Posted by birdman View Post
    No, in 5.4 you couldn't see the option with a one-off timer.
    I've just removed and reinstalled the release version on vps on 5.4 Epg/Green .......

    no.jpg

    If you setup the vps plugin like this it doesn't show the option in epg/green...

    yes.jpg

    So we're both right.

    nb settings file keeps vps options after uninstalling the plugin.

  12. #71
    Joe_90's Avatar
    Title
    Moderator
    Join Date
    Mar 2014
    Location
    Wicklow, Ireland
    Posts
    4,127
    Thanks
    1,280
    Thanked 1,126 Times in 888 Posts
    Quote Originally Posted by birdman View Post
    No, in 5.4 you couldn't see the option with a one-off timer.

    timers_vps.xml is the file it should be written to, but when that gets written no timer has vps enabled...
    You can see the option in a one-off timer providing you have the "VPS enabled by default" set to no in the plugin settings. But, as @ccs posted, any value set in the timer menu was not saved.
    Attached Images Attached Images
    Last edited by Joe_90; 19-02-21 at 13:36.
    GB Quad Plus, Mut@nt HD51, AX HD61, 80cm dish and Supreme Dark motor. Sony STR-DN 1060, Sony UHP-H1 Bluray, Odroid N2+ (CoreElec), Monitor Audio Bronze 5.1 speakers

  13. #72
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,829
    Thanks
    239
    Thanked 1,664 Times in 1,311 Posts
    Quote Originally Posted by ccs View Post
    nb settings file keeps vps options after uninstalling the plugin.
    I don't think anything removes options when something is removed.
    The only thing that could remove "old" options is the package itself, and it can't a enigma2 is (possibly) running so has them "active".
    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. #73
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Quote Originally Posted by birdman View Post
    I don't think anything removes options when something is removed.
    The only thing that could remove "old" options is the package itself, and it can't a enigma2 is (possibly) running so has them "active".
    OK, but it can catch you out when you reinstall a plugin and epg/green no longer shows the option being discussed.

    (Until you put back the original default.)

  15. #74
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,829
    Thanks
    239
    Thanked 1,664 Times in 1,311 Posts
    Quote Originally Posted by fat-tony View Post
    You can see the option in a one-off timer providing you have the "VPS enabled by default" set to no in the plugin settings. But, as @ccs posted, any value set in the timer menu was not saved.
    OK.

    But were in danger of losing track of what is and is not working if every change for point A gets a comment about each of points B to Z as well.

    So can we agree that the fix does get the item back into the menu, but the following issues now exist:

    • The VPS option doesn't appear in the Timer Edit menu if the VPS plugin config is set to "enabled by default"
    • Changing the VPS option in the Timer Edit menu doesn't actually get set/stick in the timer

    The latter seems to be the result of there being no code to actually pass on the change to the write-out function.
    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. #75
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,699
    Thanks
    2,019
    Thanked 4,987 Times in 3,290 Posts
    Quote Originally Posted by ccs View Post
    nb settings file keeps vps options after uninstalling the plugin.
    This is normal.
    Help keep OpenViX servers online.Please donate!

Page 5 of 8 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.