NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support v
« Previous 1 2 3 4 5 … 34 Next »
TV Guide Recording Buttons Out of Sync with Actual DVR Recording Status

 
  • 0 Vote(s) - 0 Average
TV Guide Recording Buttons Out of Sync with Actual DVR Recording Status
LinuxDVR
Offline

Junior Member

USA
Posts: 14
Threads: 3
Joined: Dec 2020
#1
2022-11-12, 10:05 PM (This post was last modified: 2022-11-18, 09:33 PM by LinuxDVR.)
When using the program guide at http://localhost:8866/guide.html and clicking on an in-process recording, then using the Cancel Recording button, then navigating off the TV Guide to say  http://localhost:8866/settings.html or http://localhost:8866/scheduler.html to view info, when returning to guide.html and wanting to restart a new recording of the same still in-process broadcast, clicking on the same program will display the Cancel Recording set of buttons, not the Record Once / Series / Advanced / Watch Now set of buttons (and the program entry in the guide is Not highlighted Red for Recording, so those indicators within guide.html are also out of sync). Other programs in the guide not recording or canceled previously display the correct Record... set of buttons.

Control-F5 browser refresh multiple times, clearing all browser cache data and closing and reopening the browser, doesn't cause the Record set of buttons to reappear. This occurs despite confirming that the program has actually stopped recording on scheduler.html, and at the settings.html Device Status button showing no activity, and viewing at the OS level that the .xml file has been written at the end of NextPVR recording process, and the main.ts recorded program file has stopped building in size and timestamp - it becomes virtually impossible to get the guide.html to record the remaining portion of the show again.

Without navigating off guide.html after the first Cancel Recording button click, the Cancel vs Record button sets seem to alternate properly with actual recording status (you can restart and stop and restart recording the same program multiple times), but once you navigate away from guide.html and come back, the program that was canceled will only display the Cancel Recording button set.

Additionally, stopping and starting the NextPVR service and opening a new browser to guide.html does not display the correct Record.. set of buttons. Even rebooting the computer doesn't clear the issue and the Cancel set of buttons is displayed preventing restarting the recording.

What does work is that if you go to recordings.html / Recent Recordings list and delete every partial recording of that program (which deletes the actual recording file on disk which isn't desirable) then the guide.html will display the Record set of buttons again, so perhaps the code is checking scheduled recordings of that program to determine whether it is in recording process, when it needs to differentiate 'completed' partial recordings separate from still in-process recordings of the same program to determine which buttons to display.

Please find and correct the issue. For long recordings like sporting or Olympics or channels that just have generic 6 or 12 hour long time slots like some weather or news etc, where you want to break up the recording into smaller chunks manually by stopping and restarting the recording, this is a common-for-me real-world usage being prevented.

I'm using the latest version 6.1.1.221106 Available (6th Nov 2022) on Linux Mint 21(.0 confirmed, the sys info no longer displays minor version number) and the button set issue has occurred over 1-2+ years of NextPVR releases.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 45,330
Threads: 865
Joined: May 2006
#2
2022-11-12, 10:09 PM
This is a known issue as I have noted it to sub but you are better off using Direct play clients to play recordings anyway

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,394
Threads: 741
Joined: Nov 2003
#3
2022-11-13, 04:46 AM
Quote:When using the program guide at http://localhost:8866/guide.html and clicking on an in-process recording, then using the Cancel Recording button, then navigating off the TV Guide to say http://localhost:8866/settings.html or http://localhost:8866/scheduler.html to view info, when returning to guide.html and wanting to restart a new recording of the same still in-process broadcast, clicking on the same program will display the Cancel Recording set of buttons, not the Record Once / Series / Advanced / Watch Now set of buttons (and the program entry in the guide is Not highlighted Red for Recording, so those indicators within guide.html are also out of sync). Other programs in the guide not recording or canceled previously display the correct Record... set of buttons.

Control-F5 browser refresh multiple times, clearing all browser cache data and closing and reopening the browser, doesn't cause the Record set of buttons to reappear. This occurs despite confirming that the program has actually stopped recording on scheduler.html, and at the settings.html Device Status button showing no activity, and viewing at the OS level that the .xml file has been written at the end of NextPVR recording process, and the main.ts recorded program file has stopped building in size and timestamp - it becomes virtually impossible to get the guide.html to record the remaining portion of the show again.
This updated file should fix the issue.

It wasn't quite doing what was intended, but the reason for the behaviour was because there a recording linked to a TV listing. It was really intended for being able to 'watch' a show that you recorded earlier from the TV Guide. This is why you continued to get the 'watch' button regardless of restarting etc (since there was still a recording that was linked to this show)


Attached Files
.zip   listing-details-modal.zip (Size: 2.87 KB / Downloads: 1)
LinuxDVR
Offline

Junior Member

USA
Posts: 14
Threads: 3
Joined: Dec 2020
#4
2022-11-14, 07:32 PM (This post was last modified: 2022-11-14, 07:33 PM by LinuxDVR.)
Thanks, the modified listing-details-model.js placed into /opt/nextpvr/system/wwwroot/components works but after about a 30-second delay, even with refreshing the browser page with Control-F5 multiple times and navigating off and back to guide.html, is seems 30 seconds needs to pass from pressing Cancel that the Recording set of buttons will appear again.

Is there a related change in guide.html that you can code that those cancel/recording button presses would induce whatever refresh is necessary, for contrast when Canceling the first recording from guide.html and navigating to scheduler.html or recordings.html the latest recording (completed/ended) status is updated as fast as you can navigate to those pages, but returning to guide.html the alternating set of correct Recording buttons won't display until past what appears a 30 second interval, plus the manual forced refresh required.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 45,330
Threads: 865
Joined: May 2006
#5
2022-11-14, 09:50 PM
I noted earlier that PVR clients are better suited to dynamic change.  You can use the UI client option in the browser if this is a concern 

Cancelling and restarting recordings is also not a typical use case 

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,394
Threads: 741
Joined: Nov 2003
#6
2022-11-14, 09:56 PM
(2022-11-14, 07:32 PM)LinuxDVR Wrote: Thanks, the modified listing-details-model.js placed into /opt/nextpvr/system/wwwroot/components works but after about a 30-second delay, even with refreshing the browser page with Control-F5 multiple times and navigating off and back to guide.html, is seems 30 seconds needs to pass from pressing Cancel that the Recording set of buttons will appear again.
It shouldn't be slow. Here it is instant.

Are you running the NextPVR server on a really show machine?

If you want to post your logs, I'll check what is happening when you cancel a recording, and how long it's taking. Let us know what time you cancelled it, so we know where to look in the log.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,394
Threads: 741
Joined: Nov 2003
#7
2022-11-14, 09:58 PM
(2022-11-14, 09:50 PM)mvallevand Wrote: I noted earlier that PVR clients are better suited to dynamic change. 
There is no reason the web app shouldn't be as good for this type of stuff. If there is bugs causing issues with this stuff, I'd like to look at them and fix the issue.

I agree it's not a common scenario though.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 45,330
Threads: 865
Joined: May 2006
#8
2022-11-14, 09:58 PM
He is deliberately slowing it down with his log settings

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,394
Threads: 741
Joined: Nov 2003
#9
2022-11-14, 09:59 PM
Yep, could be that. If can supply some logs, we should be able to tell what is happening.
LinuxDVR
Offline

Junior Member

USA
Posts: 14
Threads: 3
Joined: Dec 2020
#10
2022-11-18, 08:39 PM
Attached are logs using your revised listing-details-modal.js - the main timestamps to illustrate the button set issue are:

2022-11-18 11:27:50.197 About to start recording (90997 on 23)
2022-11-18 11:28:29.691 [DEBUG][99] Requesting deletion of (90997)

Navigating off guide.html then back to guide.html in less than approx 30 seconds shows the Cancel Recording set of buttons rather than Record set of buttons, click Cancel button again to create log timestamp
2022-11-18 11:28:45.579 [DEBUG][100] Requesting deletion of (90997)

Navigate off guide.html then Wait longer than 30 seconds before returning to guide.html then Record set of buttons available
2022-11-18 11:29:12.257 [DEBUG][12] About to start recording (90998 on 23)


Inside guide.html there is a timeline function pollForRecordingChanges and related that may impact when the button set changes from Cancelling to Recording, could you add some code to the guide.html button clicks to call the related routines that would re-poll and reflect the new recording status into which button set appears. Thanks for your assistance!


You had asked about the system speed - the computer is dedicated to running NextPVR without also being a home-networked media host etc, a mostly idle dual core Intel Core i7-3520M generally using 2.5GB out of 8GB of physical memory, and even when recording 4 different frequency HDTV programs across all 4 tuners at once, including the OS threads the computer is only using 5% to 8% of CPUs. The NextPVR web app is generally not opened in a browser window, only if updating or checking recordings or glancing at the TV Guide.

I clear the logs from the NextPVR directory each nightly restart around 3:57am, but the attached log zip was created from the NextPVR settings.html Log Files button, there isn't enough activity in a day to always create the prior archive logs nrecord.log.[1-4] and all four tuner device-adapter[0-3].log that you might expect to see in the zip.


Attached Files
.zip   logs-20221118-1129.zip (Size: 97.15 KB / Downloads: 2)
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Frequent Recording Failure: Stream Unavailable DerBigBearen 4 114 2023-03-12, 10:32 PM
Last Post: DerBigBearen
Question Recording Cancellation Confirmation Prompt? ChaosMageX 0 90 2023-02-06, 04:27 AM
Last Post: ChaosMageX
  Tablo Guide Information kevin-pvr 3 197 2023-01-20, 09:50 PM
Last Post: mvallevand
  Linux Ending Tuner Recording Early For New Recording Despite Idle Tuners Available LinuxDVR 5 248 2022-11-18, 09:30 PM
Last Post: mvallevand
  Recording tuner ordering snagglewest 6 249 2022-11-17, 12:33 AM
Last Post: sub
  Can we tell NextPVR to rebuild the recording list? kamhouse 15 1,446 2022-10-26, 12:29 AM
Last Post: mlb
  Guide not showing current recording VCR58 6 272 2022-10-07, 07:25 PM
Last Post: mvallevand
  Advanced recording for something not in epg (yet) psycik 3 233 2022-10-03, 08:16 AM
Last Post: psycik
  Recording Next available Movie after Failure jw1 6 208 2022-09-26, 06:45 PM
Last Post: mvallevand
  Setup guide to schedule NPVR tymongiffin 1 349 2022-08-23, 07:20 AM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode