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: 45,337
Threads: 868
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
  Seeking explanation for recurring schedule fields timeslotStart and timeeslotEnd scJohn 4 1,355 2020-07-14, 10:13 PM
Last Post: scJohn
  Recording direct to GPhotos API rgonzalez 0 941 2020-06-29, 04:45 AM
Last Post: rgonzalez
  Recurring Recording URL Parameters jcole998 2 2,250 2019-09-19, 01:08 PM
Last Post: jcole998
  Get recording length from stream skogl 46 9,238 2019-08-15, 09:34 PM
Last Post: sub
  Web command to create recurring any channel mvallevand 2 1,918 2019-02-04, 03:09 PM
Last Post: mvallevand
  Unexpected result when deleting a pending recording scJohn 5 2,736 2018-05-06, 10:09 PM
Last Post: sub
  custom creation of a recurring error p37307 2 1,601 2017-12-19, 03:45 AM
Last Post: mvallevand
  Best approach to creating recurring recordings from c# drmargarit 0 2,172 2015-09-27, 01:32 AM
Last Post: drmargarit
  Change recording filename programmatically immediately before recording starts? craigrs84 5 5,005 2015-07-13, 09:28 PM
Last Post: patco444
  Recording a specific episode based on season and episode number cbgifford 26 7,335 2014-12-19, 10:28 PM
Last Post: cbgifford

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

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

Linear Mode
Threaded Mode