NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 6 7 8 9 10 … 93 Next »
couple of issues with recording.recurring.save method

 
  • 0 Vote(s) - 0 Average
couple of issues with recording.recurring.save method
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#1
2014-01-03, 09:08 AM
im having a couple of issues with recording.recurring.save web call. probably something silly im doing
Code:
http://batman:8866/service?method=recording.recurring.save&recurring_id=113&directory_id=%5BJohn%5D&day_mask=255&timeslot=true&only_new=false&keep=4&pre_padding=6&post_padding=9&sid=91e8facf2665418b8efd7d4577c3c96b
that gives me a result of "Invalid args".

looking at the logs, the error is quite obvious
Code:
method=recording.recurring.save&recurring_id=113&directory_id=%5BJohn%5D&day_mask=255&timeslot=true&only_new=false&keep=4&pre_padding=6&post_padding=9&sid=91e8facf2665418b8efd7d4577c3c96b
2014-01-03 22:03:12.083    [DEBUG][30]    method=recording.recurring.save
2014-01-03 22:03:12.083    [DEBUG][30]    parameters:
2014-01-03 22:03:12.083    [DEBUG][30]       method: recording.recurring.save
2014-01-03 22:03:12.083    [DEBUG][30]       recurring_id: 113
2014-01-03 22:03:12.083    [DEBUG][30]       directory_id: %5BJohn%5D
2014-01-03 22:03:12.083    [DEBUG][30]       day_mask: 255
2014-01-03 22:03:12.083    [DEBUG][30]       timeslot: true
2014-01-03 22:03:12.083    [DEBUG][30]       only_new: false
2014-01-03 22:03:12.083    [DEBUG][30]       keep: 4
2014-01-03 22:03:12.083    [DEBUG][30]       pre_padding: 6
2014-01-03 22:03:12.083    [DEBUG][30]       post_padding: 9
2014-01-03 22:03:12.083    [DEBUG][30]       sid: 91e8facf2665418b8efd7d4577c3c96b
2014-01-03 22:03:12.083    [DEBUG][30]       client_ip: 192.168.1.23
2014-01-03 22:03:12.083    [DEBUG][30]       host_callback: batman:8866
2014-01-03 22:03:12.083    [DEBUG][30]       physical_path: C:\Users\Public\NPVR\web\
2014-01-03 22:03:12.083    [DEBUG][30]       user_agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
2014-01-03 22:03:12.083    [DEBUG][30]       range:
2014-01-03 22:03:12.083    [DEBUG][30]       requested_path: /service
2014-01-03 22:03:12.083    [DEBUG][30]       verb: GET
2014-01-03 22:03:12.084    [ERROR][30]    neither event_id or start_time/end_time specified
however I dont have an event oid since im updating a "Recurring Recording", which might not have any events in the currently available epg, and if im updating one that has "Any Channel, Any Time", there is no start/stop. can this be updated so if a recurringid is passed, that is accepted?

also whenever i call it passing in an event_id for a new recurrence, eg:
Code:
http://batman:8866/service?method=recording.recurring.save&event_id=1737902&day_mask=255&timeslot=false&only_new=true&keep=0&pre_padding=2&post_padding=4&sid=7b92c163f82940b7b7be90397309fd58
it always returns the very first recurring recording as a result and not the newly created one. not sure if im just doing something wrong on this one or not...
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#2
2014-01-03, 06:24 PM
I found why this is happening and fixed it for the next build.

Unfortunately I can't post a patch right now since my build is now incompatible with 3.1.x.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#3
2014-01-03, 09:09 PM
any chance i could get a build with your change (non public one)? i really should of tested this before you finalized 3.1...
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#4
2014-01-03, 09:31 PM
I can't give you a build right now, since I'm mid way through some changes, and the app is currently in a broken state. I should be able to give you a build in a few days though.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#5
2014-01-03, 09:43 PM
cheers sub Smile
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#6
2014-01-03, 10:15 PM
just got this error when trying to schedule a recording
Code:
<rsp stat="failed">
<err code="11" msg="Failed to schedule recurring recording"/>
</rsp>
logs indicate that there is conflicts
Code:
2014-01-04 11:11:49.182    [DEBUG][22]    Checking if multi-record possible...
2014-01-04 11:11:49.184    [DEBUG][22]    Checking if multi-record possible...

could you please post a list of all the error codes (never knew about "11") and does "11" only mean there is conflicts? if not, how do you detect the problem was a conflict?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#7
2014-01-03, 10:58 PM
11 is "unexpected error". I've changed it to 7 for the next build, which is a more appropriate "no available tuner" error code, and add some info in the body about the conflicts.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#8
2014-01-03, 10:58 PM
Most of the codes will mean nothing to you, but:

public const int NOERROR = 0;
public const int ERROR_LOGIN_FAILED = 1;
public const int ERROR_INVALID_ARGUMENTS = 2;
public const int ERROR_VERSION_DEPRECATED = 3;
public const int ERROR_UNKNOWN_DEVICE = 4;
public const int ERROR_UNKNOWN_CHANNEL = 5;
public const int ERROR_RECORDING_NOT_FOUND = 6;
public const int ERROR_NO_TUNER = 7;
public const int ERROR_INVALID_SESSION = 8;
public const int ERROR_INVALID_RESOLUTION = 9;
public const int ERROR_NOT_IMPLEMENTED = 10;
public const int ERROR_UNEXPECTED = 11;
public const int ERROR_CELLULAR_DISABLED = 12;
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#9
2014-01-03, 11:05 PM
cheers for that, instead of returning 11 (unexpected) could you return no_turner (7) if theres a conflict? or perhaps return a new conflict message? and even better if it could also return the conflicting recording ids (cold just be a comma separated list in the error message)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#10
2014-01-03, 11:07 PM
Yes, as mentioned two posts above, I've modified it to return 7, no tuner, and provide list of the recordings conflicts.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom recording tomx 2 491 2025-02-07, 09:14 AM
Last Post: tomx
  API call for Recording Complete linustorvalds 1 325 2025-01-19, 02:11 PM
Last Post: mvallevand
  Manual recording API mvallevand 2 963 2023-11-09, 02:14 PM
Last Post: mvallevand
  is there a service?method which returns listings for multiple channels? reven 16 6,871 2022-04-11, 04:30 PM
Last Post: mandai
  Seeking explanation for recurring schedule fields timeslotStart and timeeslotEnd scJohn 4 2,058 2020-07-14, 10:13 PM
Last Post: scJohn
  Recording direct to GPhotos API rgonzalez 0 1,436 2020-06-29, 04:45 AM
Last Post: rgonzalez
  Recurring Recording URL Parameters jcole998 2 2,939 2019-09-19, 01:08 PM
Last Post: jcole998
  Get recording length from stream skogl 46 13,723 2019-08-15, 09:34 PM
Last Post: sub
  Web command to create recurring any channel mvallevand 2 2,577 2019-02-04, 03:09 PM
Last Post: mvallevand
  Unexpected result when deleting a pending recording scJohn 5 3,717 2018-05-06, 10:09 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode