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 »
Web API only_new Question

 
  • 0 Vote(s) - 0 Average
Web API only_new Question
Gazavant
Offline

Junior Member

United States
Posts: 10
Threads: 3
Joined: Jul 2020
#1
2021-04-01, 06:25 PM
If I create a new recurring recording where only_new=false, I find I can update that recording to only_new=true by using something like this:

Code:
recording.recurring.save&recurring_id=158&type=4&pre_padding=1&post_padding=1&directory_id=Default&only_new=true


However, if want to change back to only_new=false by using the same statement with only_new set to false, the value remains set to true after applying the edit.  Other parameters can be changed, but once only_new is changed to true, it seems to be unchangable.

Is only_new a one-way street, or am I missing something here?

I should note that I can also create a new recurring recording with only_new set to true, and it works as expected.  It's only changing only_new back to false that I can't seem to manage.

Thanks.
 - Gaz
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,839
Threads: 954
Joined: May 2006
#2
2021-04-01, 08:06 PM (This post was last modified: 2021-04-01, 08:26 PM by mvallevand.)
Sub can probably fix it but it is a rare type change so I ignore the issue in Kodi, but developers could simply delete and re-add or resubmit with &recurring_type=2

What are you developing that needs this specialization over just using the web scheduler in this instance?

Martin
Gazavant
Offline

Junior Member

United States
Posts: 10
Threads: 3
Joined: Jul 2020
#3
2021-04-01, 10:23 PM
Your input led me to find my problem's solution.  Thank you!

I had been using "type=4" instead of "recurring_type=4."  Now that I've corrected my code, "only_new=" now works for true or false. So there was no real problem, just my mistake (I think I used "type" because that's what the xml tag uses).

To answer your question -- I have no "need" for the "only_new" functionality.  It's really just my preference.  A few years back, I built an offline EPG viewer that suits my needs and preferences.  The app can also wake up and configure the npvr host after I've picked out the programs I want to record for the week.

The record interface was based on the NEWA app which gave you a checkbox to record only new programs.  I prefer that option to the recurring types available in the npvr web client mainly because recurring_type=1 doesn't offer enough flexibility.  Most of the time, I just want a particular new program on the day and time I want, and on the station I want.

I recently added the capability to edit recurring recordings, and that's when I discovered that only_new wasn't working completely right.

Now, thanks to your response, everything is working correctly.  And as an added bonus, Sub's latest update adds "enable" to the web API, and it works great right out of the box (though I still can't find the "enable" option in the web client's scheduler/recurring recording window).

Thanks again for your help and suggestions.

Gaz
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,839
Threads: 954
Joined: May 2006
#4
2021-04-01, 10:46 PM
Thanks I was trying to save you some work for a custom app since I figure toggling the state is rare and the web app can do it when needed. I didn't consider any offline aspect.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,661
Threads: 767
Joined: Nov 2003
#5
2021-04-02, 05:08 PM
(2021-04-01, 10:23 PM)Gazavant Wrote: though I still can't find the "enable" option in the web client's scheduler/recurring recording window
When you click on a recurring recording in Scheduler->Recurring, and the popup shows the recurring rules, the bottom one in the list is 'enabled/disabled'
Gazavant
Offline

Junior Member

United States
Posts: 10
Threads: 3
Joined: Jul 2020
#6
2021-04-04, 06:16 PM (This post was last modified: 2021-04-04, 06:38 PM by Gazavant.)
Thanks, Sub.  I did see your earlier response to another poster with the same issue, so I'm pretty sure I've been looking in the right place.

Then I thought it might be a browser issue (I've been using Chrome), so I checked Edge and Firefox.  Sure enough, Enabled showed up in both.

So I went back to Chrome and tried a forced refresh, but that did nothing.  Then I tried deleting all cookies, and that did the trick.  I'm good to go now.

Thanks for pointing in the right direction.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,661
Threads: 767
Joined: Nov 2003
#7
2021-04-04, 06:54 PM
Ok, sounds the browser showing you a cached page.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Another Artwork question scJohn 15 8,069 2019-09-10, 05:33 PM
Last Post: nonob
  WEB API GuidService/Listing question(s) scJohn 6 4,231 2017-08-09, 02:18 PM
Last Post: scJohn
  skin question pBS 2 3,322 2016-06-18, 07:03 PM
Last Post: pBS
  Another SQL question bgowland 15 7,153 2014-05-21, 08:09 AM
Last Post: bgowland
  Timing.Info question mvallevand 2 2,060 2013-04-19, 03:54 AM
Last Post: mvallevand
  N-PVR db3 EPG_EVENT time format question bgowland 3 2,071 2011-03-12, 05:26 AM
Last Post: bgowland
  Ping UncleJohnsBand (question about npvr soap) ioan 2 2,026 2011-02-18, 01:12 AM
Last Post: UncleJohnsBand
  Skin question - how to centre a list UiList control on screen? McBainUK 2 1,826 2011-02-17, 08:46 AM
Last Post: McBainUK
  Skin question for "Visible" 7ore 14 5,292 2010-09-22, 09:04 PM
Last Post: sub
  A question about fast incremental updates ACTCMS 12 4,318 2009-12-07, 03:42 AM
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