SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v9 Customizations

Notices

SageTV v9 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 9 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 9 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-03-2021, 04:00 AM
syrel syrel is offline
Sage Advanced User
 
Join Date: Oct 2010
Location: UK
Posts: 89
sagex api - 'null'

Hi
I'm trying to set up a transcode job using the api AddTranscodeJob. I've almost got it working, except for destination file. The api info says:

"DestinationFile- the target file path for the conversion or null if SageTV should automatically determine the filename of the target files, if a directory is given then SageTV auto-generates the filename in that directory"

How do I specify a 'null'? If I leave the field empty, it just converts to an unnamed ts file in the Sage home folder, rather than in the recorded TV folder. (DeleteSourceAfterTranscode is true, just in case that's relevant).
thanks
syrel
Reply With Quote
  #2  
Old 05-03-2021, 05:43 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,635
Quote:
Originally Posted by syrel View Post
Hi
I'm trying to set up a transcode job using the api AddTranscodeJob. I've almost got it working, except for destination file. The api info says:

"DestinationFile- the target file path for the conversion or null if SageTV should automatically determine the filename of the target files, if a directory is given then SageTV auto-generates the filename in that directory"

How do I specify a 'null'? If I leave the field empty, it just converts to an unnamed ts file in the Sage home folder, rather than in the recorded TV folder. (DeleteSourceAfterTranscode is true, just in case that's relevant).
thanks
syrel
I'm assuming here you are meaning the sagex REST api and you are calling some command, using c=COMMAND&1=PARAM1&2=PARAM2, etc.

If so you can try 2 things...
1. You can something like, 2=mediafile:-666, and that "might" result in a "null" return and it "might" get passed as null to the final command.
2. You can use the EvaluateCommand api where you basically create the entire command a text. (this is sort of like an eval in javascript) (I think it is called evaluate command, but it might be called something else, and I don't have sagetv server up and running to check it -- in the sagex api, you can search for eval and see what comes back)
Reply With Quote
  #3  
Old 05-03-2021, 11:34 AM
syrel syrel is offline
Sage Advanced User
 
Join Date: Oct 2010
Location: UK
Posts: 89
Thanks. I'll try that out later.
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
sagex-api / sagex-services v9.1.7.0 stuckless SageTV v9 Customizations 11 03-16-2018 07:13 PM
sagex api sflamm SageTV v9 Customizations 8 02-21-2017 12:42 AM
sagex-api Plugin MISSING: sagex-api-FAILED http://ubuntone.com/5NNCHGlywxvXBgRw8B3nMr antplugger SageTV v7 Customizations 10 06-10-2014 01:34 AM


All times are GMT -6. The time now is 10:07 AM.


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