NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
1 2 3 4 5 … 194 Next »
Show pre-post padding in scheduler list

 
  • 0 Vote(s) - 0 Average
Show pre-post padding in scheduler list
ineffablebob
Offline

Junior Member

USA
Posts: 4
Threads: 2
Joined: Sep 2025
#1
2025-09-20, 12:30 PM
If you use the pre-pad and post-pad options, then the times in the scheduler list aren't entirely accurate. The list shows the start and end time of the program, but the recording will actually run a bit longer due to the padding. It would be useful to have an option to show the amount of padding on the list, so you don't have to click on each entry if you want to see if it's got padding options. I went ahead and added this to my own installation, by modifying recordings-grid.js:

Code:
--- recordings-grid.js.bak      2025-09-20 08:19:08.974010622 -0400
+++ recordings-grid.js  2025-09-20 08:19:08.974010622 -0400
@@ -358,7 +358,16 @@
                     var startTime = new Date(recording.startTime * 1000);
                     var duration = recording.duration;
                     var endTime = new Date(startTime.getTime() + 1000 * duration);
-                    recording.period = startTime.toLocaleDateString() + ' ' + startTime.toLocaleTimeString() + ' - ' + endTime.toLocaleTimeString();
+                    var prePad = '';
+                    var postPad = '';
+                    if (recording.prePadding != 0) {
+                        prePad = '(' + recording.prePadding + ') ';
+                    }
+                    if (recording.postPadding != 0) {
+                        postPad = ' (' + recording.postPadding + ')';
+                    }
+                    recording.period = prePad + startTime.toLocaleDateString() + ' ' + startTime.toLocaleTimeString() + ' - ' + endTime.toLocaleTimeString() + postPad;
+
                     recording.readableTime = startTime.toLocaleDateString() + ' ' + startTime.toLocaleTimeString();

                     if (recording.subtitle != "") {

That patch makes the time portion of the upcoming recordings list look like this (when the schedule has 6 mins pre and 8 mins post): [REWIND] (6) 9/20/2025 8:30:00 AM - 9:00:00 AM (8) 

Of course, it would be nicer if it were an option that could be turned on and off - something for a future release!
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  auto close popup channel list davy 3 886 2025-01-01, 11:14 PM
Last Post: sub
  Only show channels in selected group under channels JCDinPGH 1 638 2024-11-27, 03:58 PM
Last Post: sub
  save pre, post padding settings for each channel koijh65 0 950 2023-01-10, 01:43 AM
Last Post: koijh65
  Windows client list suggestions seattlefog 0 939 2022-10-10, 05:28 PM
Last Post: seattlefog
  Import m3u on device list - file/folder navigator psycik 1 1,182 2022-09-28, 08:25 PM
Last Post: mvallevand
  Fav Channels list ciccio 2 1,731 2022-02-28, 12:20 PM
Last Post: ciccio
  favorites list howardmd66 5 2,931 2022-01-28, 12:56 AM
Last Post: howardmd66
  Sorting Options for Recurring Recording List pkscout 1 1,204 2021-11-23, 07:51 PM
Last Post: sub
  Wrong Poster for TV Show three6zerocool 1 1,175 2021-08-01, 09:54 PM
Last Post: sub
Heart New local transmitter - add to list? skris88 2 1,366 2021-07-15, 03:31 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