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 … 93 Next »
Recurring Recording URL Parameters

 
  • 0 Vote(s) - 0 Average
Recurring Recording URL Parameters
jcole998
Offline

Posting Freak

New York, USA
Posts: 856
Threads: 186
Joined: Jun 2015
#1
2019-09-18, 03:39 PM
I've had good luck with using the URL web interface to schedule single events. I wish to expand my capability by scheduling a recurring event.

The GitHub code shows:

case TIMER_REPEATING_EPG:
XBMC->Log(LOG_DEBUG, "TIMER_REPEATING_EPG");
// build recurring recording request
snprintf(request, sizeof(request), "/service?method=recording.recurring.save&recurring_id=%d&event_id=%d&keep=%d&pre_padding=%d&post_padding=%d&day_mask=%s&directory_id=%s&only_new=%s",
timerinfo.iClientIndex,
timerinfo.iEpgUid,
(int)timerinfo.iMaxRecordings,
(int)timerinfo.iMarginStart,
(int)timerinfo.iMarginEnd,
days.c_str(),
m_recordingDirectories[timerinfo.iRecordingGroup].c_str(),
preventDuplicates
);
break;

This is straight forward but I don't know where to get "timerinfo.iClientIndex." I see it used as the &recurring_id parameter but where does the number come from? It seems to have been already established somewhere, but where? Can I get to it?

Thanks in advance.
Later...JohnC

System Status: Humming nicely!  Smile
Desktop: Intel DX38BT MB - Intel Q9650 3GHz Quad - NVIDIA GeForce GTX 1050 Ti Graphics
Software: Win 10 Pro(Build 1909) - NextPVR - WinTV8
Video: Verizon FiOS - Hauppauge DCR-3250 - Hauppauge 1512 HDPVR2
RaspberryPi 4 Raspbian and FLIRC
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2019-09-18, 05:04 PM
That code is being used to either create a new recurring recording, or update an existing one. ie, if recurring_id=0, or the parameter not specified at all, then it'll create a new recurring recording. If it's recurring_id=x, then it'll update recurring recording x.
jcole998
Offline

Posting Freak

New York, USA
Posts: 856
Threads: 186
Joined: Jun 2015
#3
2019-09-19, 01:08 PM
Thank you, sub.
Later...JohnC

System Status: Humming nicely!  Smile
Desktop: Intel DX38BT MB - Intel Q9650 3GHz Quad - NVIDIA GeForce GTX 1050 Ti Graphics
Software: Win 10 Pro(Build 1909) - NextPVR - WinTV8
Video: Verizon FiOS - Hauppauge DCR-3250 - Hauppauge 1512 HDPVR2
RaspberryPi 4 Raspbian and FLIRC
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom recording tomx 2 401 2025-02-07, 09:14 AM
Last Post: tomx
  API call for Recording Complete linustorvalds 1 273 2025-01-19, 02:11 PM
Last Post: mvallevand
  Manual recording API mvallevand 2 909 2023-11-09, 02:14 PM
Last Post: mvallevand
  Video streaming URL and parameters? cncb 1 1,759 2021-10-22, 06:58 PM
Last Post: sub
  Seeking explanation for recurring schedule fields timeslotStart and timeeslotEnd scJohn 4 2,029 2020-07-14, 10:13 PM
Last Post: scJohn
  Recording direct to GPhotos API rgonzalez 0 1,394 2020-06-29, 04:45 AM
Last Post: rgonzalez
  Get recording length from stream skogl 46 13,427 2019-08-15, 09:34 PM
Last Post: sub
  Web command to create recurring any channel mvallevand 2 2,546 2019-02-04, 03:09 PM
Last Post: mvallevand
  Unexpected result when deleting a pending recording scJohn 5 3,632 2018-05-06, 10:09 PM
Last Post: sub
  custom creation of a recurring error p37307 2 2,203 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