NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
1 2 3 4 5 … 93 Next »
Manual recording API

 
  • 0 Vote(s) - 0 Average
Manual recording API
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,839
Threads: 954
Joined: May 2006
#1
2023-11-09, 12:39 AM
I am trying to schedule a manual recording for a show in Kodi.  Is there a way using the API to keep it manual if I provide a name?  In this case my 2hr recording is being truncated to one hour.

Code:
2023-11-08 18:37:37.972 [DEBUG][221]    Got request [127.0.0.1]: /service (recording.save)
2023-11-08 18:37:37.972 [DEBUG][221]    method=recording.save
2023-11-08 18:37:37.973 [DEBUG][221]    parameters:
2023-11-08 18:37:37.973 [DEBUG][221]      method: recording.save
2023-11-08 18:37:37.973 [DEBUG][221]      name: CBC Ottawa News
2023-11-08 18:37:37.973 [DEBUG][221]      recording_id: 0
2023-11-08 18:37:37.973 [DEBUG][221]      channel: 7388
2023-11-08 18:37:37.973 [DEBUG][221]      time_t: 1699484340
2023-11-08 18:37:37.973 [DEBUG][221]      duration: 7260
2023-11-08 18:37:37.973 [DEBUG][221]      pre_padding: 0
2023-11-08 18:37:37.973 [DEBUG][221]      post_padding: 0
2023-11-08 18:37:37.973 [DEBUG][221]      directory_id: Default
2023-11-08 18:37:37.973 [DEBUG][221]      sid: 2da1af8edcdb4e2cb84aa381e888bf22
2023-11-08 18:37:37.974 [DEBUG][221]      client_ip: 127.0.0.1
2023-11-08 18:37:37.974 [DEBUG][221]      user_agent: Kodi/21.0-BETA1 (Windows NT 10.0.22631.2506; W2023-11-08 18:37:37.974 [DEBUG][221]      host_callback: ...
2023-11-08 18:37:37.974 [DEBUG][221]    Schedule Recording from EPGEvent...
2023-11-08 18:37:37.975 [DEBUG][221]    about to record:
<Event>
  <OID>2301140</OID>
  <Title>CBC Ottawa News</Title>
  <SubTitle></SubTitle>
  <Description>Coverage of the top local news.</Description>
  <ChannelOID>7388</ChannelOID>
  <StartTime>2023-11-08T22:59:00.0000000Z</StartTime>
  <EndTime>2023-11-09T00:00:00.0000000Z</EndTime>
  <FirstRun>true</FirstRun>
  <OriginalAirDate>2015-10-05T04:00:00.0000000</OriginalAirDate>
  <Quality>HDTV</Quality>
  <Genres>
    <Genre>News</Genre>
  </Genres>
  <MD5>MVnlNLHZB7UuWmhEFLvjpQ</MD5>
  <UniqueID>SH022793520000</UniqueID>
</Event>

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,661
Threads: 767
Joined: Nov 2003
#2
2023-11-09, 03:33 AM
Looking at the code, if the name is an exact match on that channel, for that time, then no - it treats it as a EPG based recording. If the name hadn't been an exact match, it'd have been stayed a manual recording.

Could probably add some sort of &manual=true for the next release if you need it.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,839
Threads: 954
Joined: May 2006
#3
2023-11-09, 02:14 PM (This post was last modified: 2023-11-09, 02:14 PM by mvallevand.)
I don't really want to make a Kodi specific rule, With the web rule not matching on the name could it be because of XML vs JSON or maybe because Kodi send recording_id: 0 on new recordings?

Code:
2023-11-09 09:10:09.231    [DEBUG][111]    method=recording.save
2023-11-09 09:10:09.231    [DEBUG][111]    parameters:
2023-11-09 09:10:09.231    [DEBUG][111]       method: recording.save
2023-11-09 09:10:09.231    [DEBUG][111]       channel: 7396
2023-11-09 09:10:09.231    [DEBUG][111]       time_t: 1699539000
2023-11-09 09:10:09.231    [DEBUG][111]       duration: 720
2023-11-09 09:10:09.231    [DEBUG][111]       name: Drazilion
2023-11-09 09:10:09.232    [DEBUG][111]       pre_padding: 0
2023-11-09 09:10:09.232    [DEBUG][111]       post_padding: 0
2023-11-09 09:10:09.232    [DEBUG][111]       directory_id: Default
2023-11-09 09:10:09.232    [DEBUG][111]       format: json
2023-11-09 09:10:09.232    [DEBUG][111]       sid: 64ef8210-1ef3-49e8-85c3-efad506cdab7
2023-11-09 09:10:09.232    [DEBUG][111]       client_ip: 127.0.0.1
2023-11-09 09:10:09.232    [DEBUG][111]       user_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0
2023-11-09 09:10:09.232    [DEBUG][111]       host_callback: ...
2023-11-09 09:10:09.233    [DEBUG][111]    Unable to find matching show ('Drazilion': 2023-11-09 09:10). Scheduling manual recording.

and Kodi matching

Code:
2023-11-09 09:07:12.111    [DEBUG][19]    method=recording.save
2023-11-09 09:07:12.111    [DEBUG][19]    parameters:
2023-11-09 09:07:12.111    [DEBUG][19]       method: recording.save
2023-11-09 09:07:12.111    [DEBUG][19]       name: Drazilion
2023-11-09 09:07:12.111    [DEBUG][19]       recording_id: 0
2023-11-09 09:07:12.112    [DEBUG][19]       channel: 7396
2023-11-09 09:07:12.112    [DEBUG][19]       time_t: 1699538400
2023-11-09 09:07:12.112    [DEBUG][19]       duration: 3600
2023-11-09 09:07:12.112    [DEBUG][19]       pre_padding: 0
2023-11-09 09:07:12.112    [DEBUG][19]       post_padding: 0
2023-11-09 09:07:12.112    [DEBUG][19]       directory_id: Default
2023-11-09 09:07:12.112    [DEBUG][19]       sid: e05e9c15cb304192809912a8f0580a22
2023-11-09 09:07:12.112    [DEBUG][19]       client_ip: 127.0.0.1
2023-11-09 09:07:12.112    [DEBUG][19]       user_agent: Kodi/21.0-BETA1 (Windows NT 10.0.22631.2506; Win64; x64) App_Bitness/64 Version/21.0-BETA1-(20.90.801)-Git:20231021-55c05bdc51
2023-11-09 09:07:12.112    [DEBUG][19]       host_callback: ...
2023-11-09 09:07:12.113    [DEBUG][19]    Schedule Recording from EPGEvent...

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom recording tomx 2 431 2025-02-07, 09:14 AM
Last Post: tomx
  API call for Recording Complete linustorvalds 1 290 2025-01-19, 02:11 PM
Last Post: mvallevand
  Recording direct to GPhotos API rgonzalez 0 1,407 2020-06-29, 04:45 AM
Last Post: rgonzalez
  Recurring Recording URL Parameters jcole998 2 2,902 2019-09-19, 01:08 PM
Last Post: jcole998
  Get recording length from stream skogl 46 13,544 2019-08-15, 09:34 PM
Last Post: sub
  Unexpected result when deleting a pending recording scJohn 5 3,661 2018-05-06, 10:09 PM
Last Post: sub
  How to best verify success when adding a recurring recording drmargarit 1 2,740 2017-03-02, 03:13 PM
Last Post: mvallevand
  Change recording filename programmatically immediately before recording starts? craigrs84 5 5,989 2015-07-13, 09:28 PM
Last Post: patco444
  Recording a specific episode based on season and episode number cbgifford 26 10,039 2014-12-19, 10:28 PM
Last Post: cbgifford
  Custom recording rules mvallevand 58 21,731 2014-12-08, 03:28 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