|
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 |
#221
|
||||
|
||||
Sean,
That fixed it. Thanks. Tom
__________________
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. |
#222
|
|||
|
|||
Logo
Is it possible to get the Channel Logo using the remote API?
I read the docs and searched this thread - but couldn't figure out how to do it. When I do what I think is the correct thing by looking at the API, I get the following error: Code:
curl "http://10.0.0.11:8080/sagex/api?c=GetLogo&1=WTVDDT" <error sagex-version="7.0.15.0"><message><![CDATA[Unknown Object Type: sage.cx for Sage Object: MetaImage[C:\Program Files\SageTV\SageTV\ChannelLogos\WTVDDT.png#0 264x198 javaImage=false javaMem=0 jref=0]]]></message><exception><![CDATA[java.lang.Exception: Unknown Object Type: sage.cx for Sage Object: MetaImage[C:\Program Files\SageTV\SageTV\ChannelLogos\WTVDDT.png#0 264x198 javaImage=false javaMem=0 jref=0] at sagex.remote.builder.SimpleXmlBuilder.handleError(SimpleXmlBuilder.java:38) at sagex.remote.builder.SageAPIBuilder.build(SageAPIBuilder.java:63) at sagex.remote.api.XmlReplyEncoder.encodeReply(XmlReplyEncoder.java:26) at sagex.remote.api.ApiHandler.hanleRequest(ApiHandler.java:158) at sagex.remote.SagexServlet.doPost(SagexServlet.java:63) at sagex.remote.SagexServlet.doGet(SagexServlet.java:41) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:230) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520) Caused by: java.lang.Exception: Unknown Object Type: sage.cx for Sage Object: MetaImage[C:\Program Files\SageTV\SageTV\ChannelLogos\WTVDDT.png#0 264x198 javaImage=false javaMem=0 jref=0] ... 23 more |
#223
|
||||
|
||||
Quote:
__________________
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 |
#224
|
|||
|
|||
Ok - Thanks. I submitted a request for enhancement on the project site. Thanks for providing these APIs.
|
#225
|
||||
|
||||
Thanks. My time is pretty thin lately, but I'll see if I can quickly add in support for channel logos over the weekend.
__________________
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 |
#226
|
||||
|
||||
A little later than I had hoped... but I've updated the sagex-apis to 7.0.19, and there is a media handler for getting logos. You can use it like,
/sagex/media/logo/LOGONAME If there is a logo, it will call GetLog(LOGONAME) and return the image, if it exists.
__________________
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 |
#227
|
|||
|
|||
Thanks for adding this!
|
#228
|
|||
|
|||
Stuckless -
Thanks again for these awesome remote APIs. I do come with another question and an RFE :-) Question: Does /media support cover art for music? I have music that has cover art, but I don't seem to be able to get it with /thumbnail - should I be able to? RFE: If a media file does not exist, could the handler for the /media set the response code to 404 instead of 200?
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram Guest: Ubuntu 16.04 with Sage v9 in Docker Tuners: 2 HDHR (OTA); Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case. |
#229
|
|||
|
|||
Quote:
cheers |
#230
|
|||
|
|||
Quote:
But I am just speculating - I am sure stuckless can end the speculation.
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram Guest: Ubuntu 16.04 with Sage v9 in Docker Tuners: 2 HDHR (OTA); Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case. |
#231
|
|||
|
|||
Quote:
Are you doing something to the image in java? |
#232
|
|||
|
|||
I am requesting the image using HTTP to the jetty servlet for use in a C# application. I am building a free driver for Elve (Home automation software) to connect to Sage.
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram Guest: Ubuntu 16.04 with Sage v9 in Docker Tuners: 2 HDHR (OTA); Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case. |
#233
|
|||
|
|||
Okay gotcha now
|
#234
|
||||
|
||||
Quote:
But, the default handler /thumbnail/ should actually work for music, as long as GetMediaFileImage return an image for a music item. I think that when I add music support, i'll probably need a specialized /music handler to support getting covers and possibly artists. And I agree, the, /media handlers (all handlers actually) should return a 404 if the images does not exist. I've added 2 issues for these requests.
__________________
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 |
#235
|
|||
|
|||
Quote:
Code:
http://10.0.0.11:8080/sagex/thumbnail/205731 I get this response: Code:
<h1>sagex.api (7.0.19.0): Media Handler Error</H1> <h2>No Image</H2><pre> java.lang.Exception: No Image ..... Quote:
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram Guest: Ubuntu 16.04 with Sage v9 in Docker Tuners: 2 HDHR (OTA); Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case. |
#236
|
||||
|
||||
Quote:
I guess I need a specialized media handler for music.... since you have the sagex-code, and you see how I added the /logo handler... you could add in the music handler, if you wanted
__________________
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 |
#237
|
|||
|
|||
Quote:
Could you PM me your build.properties file so I see what entries you have? I didn't look too hard at the build.xml but it seemed like that was required, wasn't in SVN, and I was hoping to not reverse engineer it.
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram Guest: Ubuntu 16.04 with Sage v9 in Docker Tuners: 2 HDHR (OTA); Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case. |
#238
|
||||
|
||||
Quote:
__________________
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 |
#239
|
||||
|
||||
7.0.23.2
I've just released 7.0.23.2 of the sagex-apis (Remote APIs for Sage TV). While this release is "minor" from the version #, there are number of significant changes.
1. I've removed the remote interfaces for legacy xml, json, xbmc, and java. This means that the http interfaces for /sagex/xmlrpc, /sagex/javarpc, /sagex/jsonrpc and /sagex/xbmcrpc no long exist. The xml and json interfaces were no longer needed, since they have been a part of the /sagex/api servlet. The Xmbc and Java interfaces were removed because i no longer want to supprt them. If you are using RMI or the /sagex/api interfaces for accessing the remote apis, then things will still work the same. 2. Under the RMI interface, I used to cache objects on the server, and that cache would never expire. Basically you'd eventually get an out of memory on the server, if you were constantly using sagex apis over rmi. This was never an issue, since the RMI access was mainly used by myself in development, and there were no external plugins that used the RMI interfaces... until now. Slugger has released (or is releasing) a new version of SJQ that will use the rmi interface for accessing calling the sage apis from remote clients. Because of this a new "reaper" thread has been added that cleans up stale objects after a given amount of time. These changes probably will not affect anyone, since they relate to adding a new feature, and removing 4 obsolete features. Bottom line, if you have no idea what I'm talking about here... you are probably not affected by these changes And don't confuse #1 with the complete removal of xml and json... the remote xml and json interfaces still exist, as they have for long time, under the /sagex/api thread.
__________________
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 |
#240
|
||||
|
||||
I've got a question on how to use the api. I'm trying to get XML over http.
Say, for example, I want to call GetFileDuration, which takes 1 parameter: Code:
1; MediaFile:sage.MediaFile Code:
http://localhost:8080/sagex/api?c=GetFileDuration&1=86533 Code:
<Result>0</Result> Last edited by bradvido; 12-02-2010 at 11:35 AM. |
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 |