SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software

Notices

SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-03-2018, 02:06 PM
syrel syrel is offline
Sage Advanced User
 
Join Date: Oct 2010
Location: UK
Posts: 86
Setting padding via API?

I have default padding set within Sage (v9), but when I schedule a recording using the webui, the default padding is always zero and needs to be set manually. That's a bit of an irritation, but I believe that is expected behaviour. If I'm wrong and is there a way of doing automatic padding via the webui, someone please correct me!

However, may main question is - Is there a way of setting the padding for a manual recording and/or a favourite using the Sage API? I'm asking because I control most of my Sage viewing via the Kodi plugin. If there is an API call to set the padding for a scheduled recording, I (think I) could conceivably create a context menu item to at least set the padding with one click.

Any advice/suggestions gratefully received.

syrel
Reply With Quote
  #2  
Old 03-03-2018, 02:33 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 6,767
I don't think that there is an API call to just add padding - I think this is dealt with my changing the StopTime parameter in a call to SetRecordingTimes in the Airing API. So to add 30 minutes of airings you would increment StopTime by 1800 (or 1800000 if it is in ms).

see: http://download.sage.tv/api/sage/api...g, long, long)

Quote:
SetRecordingTimes
public java.lang.Object SetRecordingTimes(sage.Airing Airing, long StartTime, long StopTime)
Modifies or creates a time-based recording that is associated with this Airing. This is also a type of Manual Record.
Parameters:
Airing - the Airing object
StartTime - the time the recording of this Airing should start
StopTime - the time the recording of this Airing should stop
Returns:
true if the call succeeds, otherwise a localized error message is returned
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #3  
Old 03-03-2018, 02:41 PM
syrel syrel is offline
Sage Advanced User
 
Join Date: Oct 2010
Location: UK
Posts: 86
Thanks. Hmm, that seems tricky. I'm wondering how I would avoid setting an absolute time in case the epg schedule changes at a later date. Could I potentially send a command that says 'make the start time XX milliseconds before the airing start time?'.

syrel
Reply With Quote
  #4  
Old 03-04-2018, 05:07 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,591
The Favorite API has a SetStartPadding and SetStopPadding, is that what you are looking for?

http://download.sage.tv/api/sage/api...(sage.Favorite, long)
Reply With Quote
  #5  
Old 03-04-2018, 05:11 AM
syrel syrel is offline
Sage Advanced User
 
Join Date: Oct 2010
Location: UK
Posts: 86
Ideally, I'd like it more for manual recordings.

thanks

syrel
Reply With Quote
  #6  
Old 03-04-2018, 07:52 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,591
I guess I'm a little confused based on the requirements.

You mention Favorites and Manual Recording (or time based recording).

So, if it's a favorite, then you use the FavouriteAPI to adjust the padding. If it's a Manaul Recording (ie, you've said, record this show on this channel at this time) then it's a time based recording the Wayner's response is how you adjust that.

I'm not sure what you are asking here if neither of those things are what you need or want

I guess there isn't an api like AdjustPadding(Airing, +/-mins) that will look at the airing and if it's a part of a favorite then it will adjust the favorite, but if if a manual recording it will adjust the scheduled start/end times. Although you could easily add that using the sagex services and javascript and/or you could cleverly create it as well using the EvaluateExpression api and passing a bunch of nested sagetv apis using sagetv's If api.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SageTV Not seeing my padding setting kiddo3110 SageTV Software 1 08-07-2007 12:42 PM
padding....yes another question about padding...sorry kricker SageTV Software 8 09-25-2005 10:51 PM
Padding ... :( snoopy SageTV Customizations 2 07-20-2005 01:00 AM
Padding bgorrell SageTV Beta Test Software 1 05-03-2004 07:37 AM
Padding in 2.x.... JasonJoel SageTV Beta Test Software 10 04-16-2004 05:36 PM


All times are GMT -6. The time now is 09:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.