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 »
Extending recording time

 
  • 0 Vote(s) - 0 Average
Extending recording time
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 45,304
Threads: 864
Joined: May 2006
#1
2014-09-13, 10:13 PM
Sub, I am trying to extend the end time of a recording dynamically but something is going wrong, any ideas?

Code:
5:58 PM
LivePvrData.Data.Net.Responses.StatusResponse [Title=College Football, Status=14:05 2nd Qtr, IsValid=True, IsActive=True, IsComplete=False, IsError=False, ]
STATUS_IN_PROGRESS
13/09/2014 6:00:00 PM

(here my code says that the game is still on so don't end at 6)
                    schd.EndTime = schd.EndTime.AddMinutes(2);
                    schd.Save();

5:59 PM
LivePvrData.Data.Net.Responses.StatusResponse [Title=College Football, Status=14:05 2nd Qtr, IsValid=True, IsActive=True, IsComplete=False, IsError=False, ]
STATUS_IN_PROGRESS
13/09/2014 6:02:00 PM

(good Console.WriteLine(schd.EndTime.ToLocalTime()) shows the new end time)

6:00 PM
LivePvrData.Data.Net.Responses.StatusResponse [Title=College Football, Status=14:05 2nd Qtr, IsValid=True, IsActive=True, IsComplete=False, IsError=False, ]
STATUS_COMPLETED
13/09/2014 6:01:00 PM
6:01 PM

(but it still end at 6:01 with my one minute of padding)

Martin
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 45,304
Threads: 864
Joined: May 2006
#2
2014-09-13, 10:29 PM (This post was last modified: 2014-09-13, 11:06 PM by mvallevand.)
Perhaps I needs to issue ReloadSchedule(); I will wait for the next show to end at 6:30

Yes that was it.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,394
Threads: 741
Joined: Nov 2003
#3
2014-09-14, 01:04 AM
Yep, you need to tell the server to recheck the scheduled recording details.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Recording direct to GPhotos API rgonzalez 0 936 2020-06-29, 04:45 AM
Last Post: rgonzalez
  Recurring Recording URL Parameters jcole998 2 2,242 2019-09-19, 01:08 PM
Last Post: jcole998
  Get recording length from stream skogl 46 9,204 2019-08-15, 09:34 PM
Last Post: sub
  Extending end time. mvallevand 5 3,304 2018-10-17, 01:21 PM
Last Post: jcole998
  Unexpected result when deleting a pending recording scJohn 5 2,729 2018-05-06, 10:09 PM
Last Post: sub
  How to best verify success when adding a recurring recording drmargarit 1 2,224 2017-03-02, 03:13 PM
Last Post: mvallevand
  Change recording filename programmatically immediately before recording starts? craigrs84 5 4,998 2015-07-13, 09:28 PM
Last Post: patco444
  Recording a specific episode based on season and episode number cbgifford 26 7,328 2014-12-19, 10:28 PM
Last Post: cbgifford
  Custom recording rules mvallevand 58 16,083 2014-12-08, 03:28 AM
Last Post: mvallevand
  Changing the recording priority on recurring recordings cbgifford 4 2,781 2014-08-17, 03:13 PM
Last Post: Kiwi

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

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

Linear Mode
Threaded Mode