NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 105 106 107 108 109 … 433 Next »
Suggestion: add an option to choose the guide start hour [partial patch]

Suggestion: add an option to choose the guide start hour [partial patch]
WayneD
Offline

Junior Member

Posts: 30
Threads: 7
Joined: Sep 2015
#1
2016-10-01, 06:28 AM
I find it more convenient if the late-night shows are shown as a part of the same "day" as the earlier night-time shows. To support this, it would be cool if there were an option to set a "Guide Start Hour" that the user could set between, say, 0 and 6 (default: 0).

I have tweaked guide.html to hard-wire a startHour var to 4, and I like that a lot. The very simple patch is here:

http://opencoder.net/guide-start-hour.diff

I didn't try to add an option to the settings code, though.
WayneD
Offline

Junior Member

Posts: 30
Threads: 7
Joined: Sep 2015
#2
2016-10-03, 03:20 AM (This post was last modified: 2016-11-28, 06:21 AM by WayneD.)
I noticed a bug in my first patch -- the forced starting scroll position was too far to the right when a few hours were removed from the start of the day. I've updated the patch to fix that.

Aside: the variable in that scroll section should be renamed from currentTimeInSeconds2 to currentTimeInMinutes.

That does remind me of something that could be improved when switching guide days: the current code forces the scroll to the current time for all days. It would be better if only the first scroll used the current time, and after that it would leave the changed day scrolled to the same time as the last.
WayneD
Offline

Junior Member

Posts: 30
Threads: 7
Joined: Sep 2015
#3
2016-11-28, 06:20 AM
My patch had a bug when the user viewed the guide when the current time was between midnight and the startHour (4 am in my patch). The latest diff fixes this by bumping the starting date back to yesterday during that "late night" period:

http://opencoder.net/guide-start-hour.diff
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Guide Empty brady@preheim.com 13 2,444 2022-11-16, 02:13 PM
Last Post: mvallevand
  All my recordings start 90 sec early ncsercs 2 1,361 2022-03-19, 03:28 AM
Last Post: sub
  ZAP2XML no longer loading TV Guide Schedule skoonz_sr@hotmail.com 33 20,365 2021-03-27, 06:45 AM
Last Post: Jean0987654321
  Mouse Click on TV Guide throws an error mlopez1007 2 1,451 2021-03-22, 11:33 AM
Last Post: Graham
  NPVR choosing incorrect xml guide display-name after reboot drlava 7 3,062 2020-12-27, 02:27 AM
Last Post: sub
  TV Guide Initial channel NumberFive 2 1,856 2020-07-28, 06:03 PM
Last Post: NumberFive
  4.2.5 and Mobile TV Guide NumberFive 8 3,073 2020-04-30, 08:13 PM
Last Post: NumberFive
  EPG is off by 1 hour before daylight saving change tonight MCEabused 3 2,047 2020-04-05, 06:18 PM
Last Post: sub
  OTA EPG guide data only for 2 hrs acegolfer 6 3,606 2020-03-18, 08:30 PM
Last Post: mvallevand
  TV Guide edit Genre for Kodi sammy3 8 3,827 2020-03-10, 09:25 PM
Last Post: sammy3

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

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

Linear Mode
Threaded Mode