NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 43 44 45 46 47 … 93 Next »
schedule a manual recording with sqlite3.exe

 
  • 0 Vote(s) - 0 Average
schedule a manual recording with sqlite3.exe
jd142
Offline

Junior Member

Posts: 17
Threads: 7
Joined: Mar 2007
#1
2007-05-29, 05:29 PM
Hi,

I'd like to be able to schedule a manual recording from the command line using sqlite3.exe. At first this seemed simpler than trying to right a c# app that accessed the api calls.

I thought that all I should have to do is this:

sqlite3 gbpvr.db3 "insert into recording_schedule values(15,'',2,2,'c:\testme1.mpg',0,0,'2007-05-30 08:00:00.0000000','2007-05-30 08:13:00.0000000',43,1,1,2,0,'')"

Note that those are double quotes surrounding the insert command and two single quotes for fields that are left blank. All I did was take the values from an existing, good scheduled recording and change the file name and the time.

It is correctly inserted into the database. I can see it when I do a select * from recording_schedule.

The problem is that when I open up the media center interface, there are no scheduled recordings listed.

Any ideas on what I might be missing?

Thanks,

Bob
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#2
2007-05-29, 05:34 PM
After you have inserted the record you have to 'gbpvr -onlyupdateepg' so that GBPVR will look your recording up against the EPG and fill in the schedule...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#3
2007-05-29, 05:36 PM
You've set the status column to '2' which is 'STATUS_COMPLETED'. You'd probably need '0' aka 'STATUS_PENDING'.
jd142
Offline

Junior Member

Posts: 17
Threads: 7
Joined: Mar 2007
#4
2007-05-29, 08:53 PM
sub Wrote:You've set the status column to '2' which is 'STATUS_COMPLETED'. You'd probably need '0' aka 'STATUS_PENDING'.


Thank you! I think that was it. The media center interface now shows a pending recording for this evening. If it doesn't go off, I'll try the gbpvr -onlyupdateepg fix suggested.

That was very quick recognition of the insert. Is there a trigger command somewhere or does loading the media center interface force it to update?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#5
2007-05-29, 09:13 PM
The front end should always reflect the up to date state in the database. The recording service may not recognise the update has occurred for quite a while, which is why zehd recommened the '-onlyupdateepg' thing (it'll force the recording service to update itself).
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom recording tomx 2 743 2025-02-07, 09:14 AM
Last Post: tomx
  API call for Recording Complete linustorvalds 1 494 2025-01-19, 02:11 PM
Last Post: mvallevand
  Manual recording API mvallevand 2 1,160 2023-11-09, 02:14 PM
Last Post: mvallevand
  Seeking explanation for recurring schedule fields timeslotStart and timeeslotEnd scJohn 4 2,185 2020-07-14, 10:13 PM
Last Post: scJohn
  Recording direct to GPhotos API rgonzalez 0 1,538 2020-06-29, 04:45 AM
Last Post: rgonzalez
  Recurring Recording URL Parameters jcole998 2 3,094 2019-09-19, 01:08 PM
Last Post: jcole998
  Get recording length from stream skogl 46 14,679 2019-08-15, 09:34 PM
Last Post: sub
  Unexpected result when deleting a pending recording scJohn 5 3,924 2018-05-06, 10:09 PM
Last Post: sub
  How to best verify success when adding a recurring recording drmargarit 1 2,900 2017-03-02, 03:13 PM
Last Post: mvallevand
  TitanTv Remote Schedule For GBPVR UncleJohnsBand 51 34,506 2015-08-20, 05:11 PM
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