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.

View Entry Info: Recording indicator on EPG

Category:
Possible Bug
What ViX Image build number are you using?
Please provide your ViX Team image build number. Menu > Information > About > Build number > ENTER THIS NUMBER e.g. 4.2.028
Openvix 6 2 009 Release Vuuno4kse Usb
Have you tried a flash WITHOUT settings restore?
Have you tried this? PLEASE SELECT YES OR NO.
Yes
Have you tried a flash WITH settings restore?
Have you tried this? PLEASE SELECT YES OR NO.
Yes
Attachments
Page 2 of 2 FirstFirst 12
Results 16 to 27 of 27

Thread: Recording indicator on EPG

  1. #16

    Title
    ViX Beta Tester
    Join Date
    Nov 2020
    Location
    Finland
    Posts
    648
    Thanks
    220
    Thanked 77 Times in 64 Posts
    Quote Originally Posted by Huevos View Post

    I guess maybe we could add a margin to workaround this, e.g. here: https://github.com/OpenViX/enigma2/b...stGrid.py#L533

    Change to:
    Code:
    timer, matchType = RecordTimer.isInTimerOnService(serviceTimers, stime + (20 if config.recording.margin_before.value == 0 else 0), duration)
    I can confirm that change did the trick (Margin before recording (minutes) is set 0), thank you Huevos.

    EPG_rec2.jpg

    EPG_timers2.jpg

  2. The Following User Says Thank You to Orlandox For This Useful Post:

    Huevos (26-08-22)

  3. #17
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,671
    Thanks
    2,009
    Thanked 4,964 Times in 3,280 Posts
    BTW, why would anyone want to set their default start margin for every recording to 120 minutes before the program begins?
    Attached Images Attached Images
    • File Type: jpg 1.jpg (62.1 KB, 15 views)
    Help keep OpenViX servers online.Please donate!

  4. #18
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,807
    Thanks
    237
    Thanked 1,659 Times in 1,307 Posts
    Quote Originally Posted by Huevos View Post
    BTW, why would anyone want to set their default start margin for every recording to 120 minutes before the program begins?
    Why would you wish to stop them if that is their desire?
    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. #19
    littlejim
    I think the idea is that in some cases (Unicable) asking two tuners to retune at exactly the same moment doesn't work.
    So a workaround was made so that there never are two timers starting at exactly the same time: a timer starting at the same time as another will be changed to start 1 second later instead.

    Later:
    How about changing it to 1 second earlier instead?
    Last edited by littlejim; 26-08-22 at 20:53.

  6. #20
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,671
    Thanks
    2,009
    Thanked 4,964 Times in 3,280 Posts
    Quote Originally Posted by littlejim View Post
    I think the idea is that in some cases (Unicable) asking two tuners to retune at exactly the same moment doesn't work.
    So a workaround was made so that there never are two timers starting at exactly the same time: a timer starting at the same time as another will be changed to start 1 second later instead.
    Isn't that what I already explained?

    Quote Originally Posted by littlejim View Post
    How about changing it to 1 second earlier instead?
    Because the whole idea of zero is to reduce timer conflicts. Adding -1 would create start times before the program boundary, adding conflict when resources are limited.
    Help keep OpenViX servers online.Please donate!

  7. #21
    littlejim
    Or why not do it properly and implement a critical region using semaphores in the code that sends Unicable commands?

  8. #22
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,671
    Thanks
    2,009
    Thanked 4,964 Times in 3,280 Posts
    Quote Originally Posted by littlejim View Post
    Or why not do it properly and implement a critical region using semaphores in the code that sends Unicable commands?
    I look forward to receiving your pull request.
    Help keep OpenViX servers online.Please donate!

  9. #23

    Title
    ViX Beta Tester
    Join Date
    Nov 2020
    Location
    Finland
    Posts
    648
    Thanks
    220
    Thanked 77 Times in 64 Posts
    Quote Originally Posted by
    Change to:
    [CODE
    timer, matchType = RecordTimer.isInTimerOnService(serviceTimers, stime + (20 if config.recording.margin_before.value == 0 else 0), duration)[/CODE]
    @Huevos, are you going to commit this ?

  10. #24
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,671
    Thanks
    2,009
    Thanked 4,964 Times in 3,280 Posts
    Quote Originally Posted by Orlandox View Post
    @Huevos, are you going to commit this ?
    I was but Littlejim says I'm doing it all wrong and c++ needs a rewrite.
    Help keep OpenViX servers online.Please donate!

  11. #25
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,807
    Thanks
    237
    Thanked 1,659 Times in 1,307 Posts
    Quote Originally Posted by Huevos View Post
    I was but Littlejim says I'm doing it all wrong and c++ needs a rewrite.
    You can do mutex locking in Python.
    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. #26
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,671
    Thanks
    2,009
    Thanked 4,964 Times in 3,280 Posts
    Quote Originally Posted by birdman View Post
    You can do mutex locking in Python.
    Nothing to do with Python.

    This issue was unsolved for months before the workaround was introduced. Now someone knows exactly the correct way to fix it. Well if he is so clever let him send a pull request.
    Help keep OpenViX servers online.Please donate!

  13. #27

    Title
    ViX Beta Tester
    Join Date
    Nov 2020
    Location
    Finland
    Posts
    648
    Thanks
    220
    Thanked 77 Times in 64 Posts
    Quote Originally Posted by Huevos View Post
    I was but Littlejim says I'm doing it all wrong and c++ needs a rewrite.
    But commit this version, please. Rewriting is maybe coming later ?

Page 2 of 2 FirstFirst 12

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.