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 »
Recording a specific episode based on season and episode number

 
  • 0 Vote(s) - 0 Average
Recording a specific episode based on season and episode number
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#21
2014-12-19, 08:19 PM
There is a selection of ScheduleRecording() calls that'll result a recurring recording being created. All the calls with a "keepCount" parameter will do this. It's just a matter of finding the most appropriate one for what you're wanting to do.
cbgifford
Offline

Member

Posts: 189
Threads: 20
Joined: Aug 2014
#22
2014-12-19, 08:33 PM
sub Wrote:There is a selection of ScheduleRecording() calls that'll result a recurring recording being created. All the calls with a "keepCount" parameter will do this. It's just a matter of finding the most appropriate one for what you're wanting to do.

Could you give me a breakdown of what parameters 2 and 3 are for. I know what 1 and 4 are. 5 is the filename in the DB, not sure though what the brackets are for since the file name doesn't exist yet...

Code:
myRecording = helper.ScheduleRecording(evt, 1, 0, RecordingQuality.QUALITY_BEST, "[TV Shows]")
Chris


Server - Intel Core I3-3210 @ 3.40GHz - 8 GB RAM - Windows 10.0 Pro - Total Storage - 5.4 TB
Two Silicondust HD Prime CC capture, 6 tuners total
Client - Intel Core I3-3210 @3.2GHz - 4GB Ram - Windows 7.0 Pro
Client - Intel Core I3-3210 @2.9GHz - 4GB Ram - Windows 10.0 Pro
NAS - Intel Core I3-3220T @ 2.8GHz - 4GB RAM - Windows 10.0 Pro (Total Storage - 25 TB)


sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#23
2014-12-19, 08:46 PM
That call is for creating a single one-off recording.

Code:
ScheduleRecording(EPGEvent epgEvent, int prePadding, int postPadding, RecordingQuality quality, String recordingDirectoryID);

Quote:Could you give me a breakdown of what parameters 2 and 3 are for
Pre and Post padding. ie, optional minutes to start the recording early, and finish it late. It'll only honor these of the tuner is available.

Quote:5 is the filename in the DB, not sure though what the brackets are for since the file name doesn't exist yet...
The recording directory ID is only for if you've defined multiple recording directories, and want to send it to one in particular.

Visual Studio should be showing you the parameter names, which should give you a good clue what each is for.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#24
2014-12-19, 08:48 PM
Code:
// one-off recordings
        ScheduledRecording ScheduleRecording(EPGEvent epgEvent, RecordingQuality quality);
        ScheduledRecording ScheduleRecording(EPGEvent epgEvent, int prePadding, int postPadding, RecordingQuality quality);
        ScheduledRecording ScheduleRecording(EPGEvent epgEvent, int prePadding, int postPadding, RecordingQuality quality, String recordingDirectoryID);
        ScheduledRecording ScheduleRecording(EPGEvent epgEvent, RecurringRecording recurrenceParent);
        ScheduledRecording ScheduleRecording(string name, int channelOID, DateTime startTime, DateTime endTime, int prePadding, int postPadding, RecordingQuality quality);
        ScheduledRecording ScheduleRecording(string name, int channelOID, DateTime startTime, DateTime endTime, int prePadding, int postPadding, RecordingQuality quality, String recordingDirectoryID);
        
        // creating new recurring recordings        
        ScheduledRecording ScheduleRecording(EPGEvent epgEvent, int prePadding, int postPadding, DayMask dayMask, int keepCount, RecordingQuality quality, bool timeslot);
        ScheduledRecording ScheduleRecording(EPGEvent epgEvent, bool onlyNewEpisodes, int prePadding, int postPadding, DayMask dayMask, int keepCount, RecordingQuality quality, bool timeslot);
        ScheduledRecording ScheduleRecording(EPGEvent epgEvent, bool onlyNewEpisodes, int prePadding, int postPadding, DayMask dayMask, int keepCount, RecordingQuality quality, bool timeslot, String recordingDirectoryID);
        ScheduledRecording ScheduleRecording(string name, int channelOID, DateTime startTime, DateTime endTime, int prePadding, int postPadding, DayMask dayMask, int keepCount, RecordingQuality quality);
        ScheduledRecording ScheduleRecording(string name, int channelOID, DateTime startTime, DateTime endTime, int prePadding, int postPadding, DayMask dayMask, int keepCount, RecordingQuality quality, string advancedRules);
        ScheduledRecording ScheduleRecording(string name, int channelOID, DateTime startTime, DateTime endTime, int prePadding, int postPadding, DayMask dayMask, int keepCount, RecordingQuality quality, string advancedRules, String recordingDirectoryID);
        ScheduledRecording ScheduleRecording(string name, int channelOID, bool onlyNewEpisodes, DateTime startTime, DateTime endTime, int prePadding, int postPadding, DayMask dayMask, int keepCount, RecordingQuality quality, string advancedRules);
        ScheduledRecording ScheduleRecording(string name, int channelOID, bool onlyNewEpisodes, DateTime startTime, DateTime endTime, int prePadding, int postPadding, DayMask dayMask, int keepCount, RecordingQuality quality, string advancedRules, String recordingDirectoryID);
cbgifford
Offline

Member

Posts: 189
Threads: 20
Joined: Aug 2014
#25
2014-12-19, 09:07 PM
Perfect ,thanks. One last question, the daymask, assuming Sunday is first day of week, how is that set up?
Chris


Server - Intel Core I3-3210 @ 3.40GHz - 8 GB RAM - Windows 10.0 Pro - Total Storage - 5.4 TB
Two Silicondust HD Prime CC capture, 6 tuners total
Client - Intel Core I3-3210 @3.2GHz - 4GB Ram - Windows 7.0 Pro
Client - Intel Core I3-3210 @2.9GHz - 4GB Ram - Windows 10.0 Pro
NAS - Intel Core I3-3220T @ 2.8GHz - 4GB RAM - Windows 10.0 Pro (Total Storage - 25 TB)


sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#26
2014-12-19, 09:39 PM
DayMask.SUNDAY
cbgifford
Offline

Member

Posts: 189
Threads: 20
Joined: Aug 2014
#27
2014-12-19, 10:28 PM
sub Wrote:DayMask.SUNDAY

You've put a lot of effort into this. Had i just entered daymask. the IDE would have shown me everything i need to know. I was thinking a byte, which it probably is. I am assuming that the day mask will add to each other to get weekly or weekends or whatever combination of days are needed.
Chris


Server - Intel Core I3-3210 @ 3.40GHz - 8 GB RAM - Windows 10.0 Pro - Total Storage - 5.4 TB
Two Silicondust HD Prime CC capture, 6 tuners total
Client - Intel Core I3-3210 @3.2GHz - 4GB Ram - Windows 7.0 Pro
Client - Intel Core I3-3210 @2.9GHz - 4GB Ram - Windows 10.0 Pro
NAS - Intel Core I3-3220T @ 2.8GHz - 4GB RAM - Windows 10.0 Pro (Total Storage - 25 TB)


« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3


Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom recording tomx 2 712 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
  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
  XMLTV Channel Number Option gdogg371 12 7,029 2018-07-18, 04:32 PM
Last Post: sub
  Unexpected result when deleting a pending recording scJohn 5 3,883 2018-05-06, 10:09 PM
Last Post: sub
  How to best verify success when adding a recurring recording drmargarit 1 2,884 2017-03-02, 03:13 PM
Last Post: mvallevand
  Update Season and Episode from EPG_EVENT puck64 0 2,846 2015-08-31, 07:37 AM
Last Post: puck64

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

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

Linear Mode
Threaded Mode