NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 2 3 4 5 6 … 93 Next »
How to best verify success when adding a recurring recording

 
  • 0 Vote(s) - 0 Average
How to best verify success when adding a recurring recording
drmargarit
Offline

Member

Posts: 184
Threads: 49
Joined: Sep 2013
#1
2017-03-02, 02:50 AM
This is the call:
myRecording = ScheduleHelper.ScheduleRecording(NPVREvent, true, pre, post, DayMask.ANY, 0, RecordingQuality.QUALITY_DEFAULT, false);

Code stolen from NEWA follows this up with:

if (myRecording.OID != 0)
{
myRecording = ScheduledRecording.LoadByOID(myRecording.OID);

I assume that it is verifying that it added the recurring recording successfully. In my limited number of tests, however, myRecording.OID is always zero, even though the call was successful.
How should I be verifying the success or failure of the ScheduleRecording call?

Thanks,

Jim
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,116
Threads: 957
Joined: May 2006
#2
2017-03-02, 03:13 PM
I would first check for null and then would check myRecording.recurrenceOID

You may have returned a failure because of a conflict or because you tried to record an in-progress show as recurring.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom recording tomx 2 711 2025-02-07, 09:14 AM
Last Post: tomx
  API call for Recording Complete linustorvalds 1 475 2025-01-19, 02:11 PM
Last Post: mvallevand
  Manual recording API mvallevand 2 1,137 2023-11-09, 02:14 PM
Last Post: mvallevand
  Seeking explanation for recurring schedule fields timeslotStart and timeeslotEnd scJohn 4 2,165 2020-07-14, 10:13 PM
Last Post: scJohn
  Recording direct to GPhotos API rgonzalez 0 1,523 2020-06-29, 04:45 AM
Last Post: rgonzalez
  Recurring Recording URL Parameters jcole998 2 3,078 2019-09-19, 01:08 PM
Last Post: jcole998
  Get recording length from stream skogl 46 14,541 2019-08-15, 09:34 PM
Last Post: sub
  Web command to create recurring any channel mvallevand 2 2,661 2019-02-04, 03:09 PM
Last Post: mvallevand
  Unexpected result when deleting a pending recording scJohn 5 3,883 2018-05-06, 10:09 PM
Last Post: sub
  custom creation of a recurring error p37307 2 2,389 2017-12-19, 03:45 AM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode