|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#321
|
||||
|
||||
Quote:
Argh! My kingdom for a way to set a property in the client's property file
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#322
|
||||
|
||||
Really beyond my understanding, but have you tried sagex.SageAPI.getUIContext() or is that the same as what you're using?
John |
#323
|
||||
|
||||
I guess the only 100% reliable way to is pass the context into your api I do that now for only for the Play() api method, because I can risk getting the wrong context.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#324
|
||||
|
||||
Quote:
Code:
SageTV.api("GetUIContextName", new Object[] {param1, param2}) The problem is what do yo use to store/retrieve it? ie, it can't be a static variable since other extenders would end up overwriting it. You could use a ThreadLocal (which is what the sagex api does as well), but that has some issues on its own. GetUIContextName() was never meant to be called outside of the UI, and so , in Java, it may be somewhat unpredictable. I think Jeff has added code to make GetUIContextName() work in Java, but mayber there are still some outstanding issues.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#325
|
|||
|
|||
Quote:
Quote:
__________________
Server 2003 r2 32bit, SageTV9 (finally!) 2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast) 2x HD300, 1x SageClient (Win10 Test/Development) Check out TVExplorer |
#326
|
||||
|
||||
See my sample code above, I use that method and it does not consistently return the same thing.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#327
|
|||
|
|||
I use uicontext heavily from SMM api and never have any issues.
I use the sagex.api.GetUIContextName() if I just want the name for storing however when passing it as a UIContext in the sagex.api I use the Code:
new UIContext(sagex.api.GetUIContextName) |
#328
|
||||
|
||||
I *think* I finally cracked it. I created a this method:
Code:
public static String getUIProperty(String Prop, String Default) { try { return (String)SageTV.apiUI((String)SageTV.api("GetUIContextName", new Object[]{}),"GetProperty", new Object[] {Prop, Default}); } catch (Exception ex) { return null; } } Plucky - I tried your way and for some reason I just could not get it to work. I'm probably doing something wrong, but I sure can't figure it out.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#329
|
||||
|
||||
Quote:
Code:
public static java.lang.String GetProperty (UIContext _uicontext,java.lang.String PropertyName, java.lang.String DefaultValue) { Object o = sagex.SageAPI.call(_uicontext, "GetProperty", new Object[] {PropertyName,DefaultValue}); if (o!=null) return (java.lang.String) o; return null; } Code:
public class EmbeddedSageAPIProvider implements ISageAPIProvider { public Object callService(String name, Object[] args) throws Exception { return sage.SageTV.api(name, args); } public String toString() { return "sage://embedded"; } public Object callService(String context, String name, Object[] args) throws Exception { return sage.SageTV.apiUI(context, name, args); } }
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#330
|
||||
|
||||
Quote:
BTW - After using the "raw" SageTV class I appreciate even more the work you and Greg have done to make our lives easier. Thanks!
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#331
|
||||
|
||||
There's new 7.1.5 version of the sagex-apis in the repository.
- adds the new apis that were added in 7.1.5 (provided you are are running 7.1.5). - adds xml/json serialization support for SeriesInfo, Plugins, and Favorites. - adds support for scaling thumbnails, logos, and album art
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#332
|
||||
|
||||
I'm running 7.1.5.1 and getting an error when trying this URL: http://192.168.1.10:8080/sagex/api?c...all&3=1&4=true
Code:
Too many args; Your Arg Count: 4; Required Arg Count: 1
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun. Extender: STP-HD300, Harmony 550 Remote, Netgear MCA1001 Ethernet over Coax. SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client, Java 1.6. Plugins: Jetty, Nielm's Web Server, Mobile Web Interface. |
#333
|
||||
|
||||
I'm uploading the new API documentation files that have the other one in it. Small typo in the comments that preventing both from showing up.
__________________
Jeffrey Kardatzke Founder of SageTV |
#334
|
||||
|
||||
I then noticed the new AddShow and AddAiringDetailed weren't showing up either....uploaded them again with that fixed too.
__________________
Jeffrey Kardatzke Founder of SageTV |
#335
|
||||
|
||||
EDIT: updating to 7.1.5 fixed this issue!
I'm using version 7.0.23.3 and it seems the GetTranscodeJobSourceFile is not working as expected: This: Code:
http://192.168.88.10:8080/sagex/api?c=GetTranscodeJobSourceFile&1=161 Code:
<?xml version="1.0"?> <SeriesInfo> <SeriesTitle><![CDATA[Law & Order: Special Victims Unit]]></SeriesTitle> <SeriesDescription><![CDATA[The detectives that are part of the NYPD's Special Victims Unit investigate crimes of sexual nature. While the focus of the other shows in the ``Law & Order'' franchise largely deal with murder cases, the SVU detectives frequently deal with crimes, such as rapes, in which the victim survives and assists authorities in the investigation. The series features a cast of veteran actors, lead by Christopher Meloni and Mariska Hargitay.]]></SeriesDescription> <SeriesCategory><![CDATA[Crime drama]]></SeriesCategory> <SeriesSubCategory><![CDATA[]]></SeriesSubCategory> <SeriesHistory><![CDATA[]]></SeriesHistory> <SeriesPremiereDate><![CDATA[1999-09-20]]></SeriesPremiereDate> <SeriesFinaleDate><![CDATA[]]></SeriesFinaleDate> <SeriesNetwork><![CDATA[NBC]]></SeriesNetwork> <SeriesDayOfWeek><![CDATA[]]></SeriesDayOfWeek> <SeriesHourAndMinuteTimeslot><![CDATA[]]></SeriesHourAndMinuteTimeslot> <SeriesInfo> <SeriesTitle><![CDATA[]]></SeriesTitle> <SeriesDescription><![CDATA[]]></SeriesDescription> <SeriesCategory><![CDATA[]]></SeriesCategory> <SeriesSubCategory><![CDATA[]]></SeriesSubCategory> <SeriesHistory><![CDATA[]]></SeriesHistory> <SeriesPremiereDate><![CDATA[]]></SeriesPremiereDate> <SeriesFinaleDate><![CDATA[]]></SeriesFinaleDate> <SeriesNetwork><![CDATA[]]></SeriesNetwork> <SeriesDayOfWeek><![CDATA[]]></SeriesDayOfWeek> <SeriesHourAndMinuteTimeslot><![CDATA[]]></SeriesHourAndMinuteTimeslot> <SeriesImage/> <NumberOfCharactersInSeries>0</NumberOfCharactersInSeries> <SeriesID><![CDATA[]]></SeriesID> </SeriesInfo> <NumberOfCharactersInSeries>8</NumberOfCharactersInSeries> <SeriesID><![CDATA[316978]]></SeriesID> </SeriesInfo> Perhaps there is a simple change in your code to reference the correct call? I'll try updating to the latest version and see what changes Thanks for the help! Last edited by bradvido; 03-18-2011 at 09:19 AM. |
#336
|
|||
|
|||
New channel logos
I noticed that the new channel logos in the beta are not currently showing up with the API.
__________________
-Craig |
#337
|
||||
|
||||
7.1.5.2 is posted
I've updated the sagex apis to 7.1.5.2. Hopefully this should now include the new apis that were published.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#338
|
|||
|
|||
Will the http api be able to access these new logos? Thanks.
__________________
-Craig |
#339
|
||||
|
||||
I think it should be able to access the new logos. I'm simply calling the api and converting it to a regular image. I'm not sure if sagetv is allowing it to be accessed or not. ie, if the channel logs are hosted on a remote site, then the GetLogo api may not return a usuable image that can be "remoted" (at least not easily).
Have you tested the it to see if works or not?
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#340
|
||||
|
||||
Is this the right URL?
Code:
http://<server>:<port>/sagex/api?c=GetChannelLogo&1=channel:11150&2=Large&3=1&4=true Code:
<Result><![CDATA[]]></Result>
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun. Extender: STP-HD300, Harmony 550 Remote, Netgear MCA1001 Ethernet over Coax. SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client, Java 1.6. Plugins: Jetty, Nielm's Web Server, Mobile Web Interface. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hauppauge Remote Issue | yacht_boy | Hardware Support | 4 | 05-01-2008 09:25 PM |
MCE remote transmitting keypresses twice | arnabbiswas | Hardware Support | 1 | 02-22-2007 10:55 AM |
MCE Remote not work fully with Placeshifter | devinteske | SageTV Placeshifter | 5 | 02-08-2007 11:45 PM |
Harmony Remote IR Reciever Help | brundag5 | Hardware Support | 2 | 01-13-2007 09:08 PM |
How to get SageTV to release focus to NVDVD for remote | IncredibleHat | SageTV Software | 4 | 07-06-2006 07:47 AM |