NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 4 5 6 7 8 … 93 Next »
Couple of questions about hacking npvr.db3

 
  • 0 Vote(s) - 0 Average
Couple of questions about hacking npvr.db3
drmargarit
Offline

Member

Posts: 184
Threads: 49
Joined: Sep 2013
#1
2014-09-07, 09:54 PM
1) I am adding season and episode data to the subtitle of scheduled_recording. ie. "S08E03 Sheldon and Leonard jump a shark."
---The utility runs in the PostEPGUpdate batch file.
---Does NPVR care if the subtitle changes like that or if it doesn't match what is in epg_event?

2) I want to scan the epg_event table every day and look for series premiers (S01E01) in prime time and automatically add a recurring recording rule for it.
--- If I just add a record to recurring_recording, will NPVR honor that entry? Choke on it?

Once I get this up and running the WAF will be high enough to go live and let SageTV go dark.

Thanks,

Jim Margarit
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,661
Threads: 767
Joined: Nov 2003
#2
2014-09-07, 10:19 PM
drmargarit Wrote:1) I am adding season and episode data to the subtitle of scheduled_recording. ie. "S08E03 Sheldon and Leonard jump a shark."
---The utility runs in the PostEPGUpdate batch file.
---Does NPVR care if the subtitle changes like that or if it doesn't match what is in epg_event?
That should be fine. I don't think it'll cause any problems.

Quote:2) I want to scan the epg_event table every day and look for series premiers (S01E01) in prime time and automatically add a recurring recording rule for it.
--- If I just add a record to recurring_recording, will NPVR honor that entry? Choke on it?
If the entry you make is exactly the same as one NextPVR would make, then it should be fine. When it next updates the EPG, and processes the recurring recordings, it'll load and process your new recurring recording.
drmargarit
Offline

Member

Posts: 184
Threads: 49
Joined: Sep 2013
#3
2014-09-07, 10:22 PM
sub Wrote:That should be fine. I don't think it'll cause any problems.

If the entry you make is exactly the same as one NextPVR would make, then it should be fine. When it next updates the EPG, and processes the recurring recordings, it'll load and process your new recurring recording.

Great news! Thanks for the ultra quick response.

Jim Margarit
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,839
Threads: 954
Joined: May 2006
#4
2014-09-08, 01:51 AM
sub Wrote:If the entry you make is exactly the same as one NextPVR would make, then it should be fine. When it next updates the EPG, and processes the recurring recordings, it'll load and process your new recurring recording.

Note there is a 24 hr gap. If you use the NUtility.ScheduleHelper API in your code you can avoid this

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,661
Threads: 767
Joined: Nov 2003
#5
2014-09-08, 01:54 AM
Yep, but my assumption is that his machine is probably going to spot the new shows several days out, so probably not a big problem. Yes, he use the scheduler helper API to avoid waiting for the next day, or manually run -updateepg (assuming he's not running up UpdateEPG.bat/PostUpdateEPG.bat, creating recursion problem)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,839
Threads: 954
Joined: May 2006
#6
2014-09-08, 02:01 AM
To avoid recursion what about using -recurring

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,661
Threads: 767
Joined: Nov 2003
#7
2014-09-08, 02:22 AM
Yep, could probably run "NextPVR -recurring" to tell the server to reprocess recurring recordings.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Way to tell programmatically if channel load in from NPVR has finished... gdogg371 3 2,345 2021-03-11, 03:59 PM
Last Post: mvallevand
  Plugins and NPVR. Where do we start? sub 80 68,189 2020-11-26, 10:02 PM
Last Post: mandai
  Test/Development environment for npvr.db3 scJohn 10 4,242 2020-09-04, 09:14 PM
Last Post: scJohn
  How to extract M3U8 and get matching XMLTV guide data from NPVR almightyj 0 3,396 2018-10-23, 07:24 AM
Last Post: almightyj
  ios app to control npvr ui idea jnbooker15 4 3,568 2015-09-21, 10:19 PM
Last Post: sub
  ios app to control npvr ui idea jnbooker15 0 2,449 2015-09-21, 06:39 PM
Last Post: jnbooker15
  Questions about Scraping from thetvdb and themoviedb craigrs84 0 2,498 2014-08-19, 05:30 PM
Last Post: craigrs84
  couple of issues with recording.recurring.save method reven 10 4,639 2014-01-03, 11:11 PM
Last Post: reven
  high res (256x256+) npvr icon? reven 15 5,788 2013-09-01, 05:13 AM
Last Post: psycik
  trying to fake npvr database for unit tests reven 3 2,248 2013-05-20, 08:53 AM
Last Post: reven

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

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

Linear Mode
Threaded Mode