SageTV Community  

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

Notices

SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-25-2020, 02:13 PM
deanm deanm is offline
Sage Aficionado
 
Join Date: Apr 2005
Location: North East, UK
Posts: 303
Sagex and Categories.

Looking for some assistance with a Sagex and Categories. I have been trying to figure this out for a few days now and not getting anywhere as Im not sure if its Sagex or how I’m sending the Categories.

I have been playing around with Python and Sagex to crate some custom shows using the AddShow API. In the API it states the following for Categories.

Categories - an array of the categories of the Show (should be genre for music)

No matter what I try to send Array or list via Sagex. I keep getting the following in the STV logs.

sagex Request Helper: Unhandled object in parameters: <What ever put in the Categories option>


My questions are:-

How do you send an Array via Sagex? (),{},[] or neither?

What should I be sending for Categories as its not really documented anywhere?

For example if I just want to assign ‘News’ as a Category do I just send ‘News’ or do I need to add anything else?


Just to add the show is added, just the Categories information is missing. I do want to started adding the PeopleList and RolesListForPeopleList but baby steps, as I need to sort this issue out first.

Cheers

Dean
__________________
Darkside: DVB-C x4 DVB-T2 x2 HD-300 x4
Lightside: DVB-C x2 DVB-T2 x4 HD-300 x3
Reply With Quote
  #2  
Old 06-26-2020, 04:29 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,610
I just did a quick look at the source code, and I don't think sagex rest apis support arrays as in an input parameter for a command. It's likely an oversight, in that the APIs are mostly used to get data and while is can send requests, likely, arrays an input arg hadn't been encountered.
Reply With Quote
  #3  
Old 06-26-2020, 11:59 AM
deanm deanm is offline
Sage Aficionado
 
Join Date: Apr 2005
Location: North East, UK
Posts: 303
Ok thank you for the reply.

Guess my idea is a none starter then. Unless I switch this part over to Java or use XMLTV. XMLTV is what I wanted to avoid.

Anyone got any information on how Categories should be formatted when using the AddShow API?

Is it just a case of {“Cat1”,”Cat2”} or {“Cat1 , Cat2”}. I have seen information using a mixture of / and , for main and sub-categories.

Cheers

Dean
__________________
Darkside: DVB-C x4 DVB-T2 x2 HD-300 x4
Lightside: DVB-C x2 DVB-T2 x4 HD-300 x3
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 01:00 AM.


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