|
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 |
#341
|
|||
|
|||
I use it in the Windows Gadget (via "/sagex/media/logo/CHANNELNAME") and noticed that it stopped working after I started using the new logos. The new logos seem to be downloaded to the "GeneratedThumbnails" directory so they are somewhat "local".
__________________
-Craig |
#342
|
||||
|
||||
When I use that URL, I get a logo if it's stored in ChannelLogos but not if it's a default Sage logo. In that case I get an HTTP 404 "No Image" page.
__________________
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. |
#343
|
||||
|
||||
In the next build, I've made some changes...
You can now use... /media/logo/STATIONID instead of /media/log/CHANNELNAME. using /media/log/STATIONID will use the new 7.1 apis for resolving logs, and you can also pass, type=small|medium|large, index=0|1|2, fallback=true|false (as per the API documentation). Also, I've added a new encoder to /sagex/api, called 'image'. You can use this when calling an API method that returns an image. The onus is on YOU to tell sagex that you want an image, otherwise you'll get an encoded json/xml representation of the image (which is usually empty). I didn't want to add to much overhead to the existing processing to support this, so you'll need to pass encoder=image on the url. Code:
http://localhost:8080/sagex/api?c=GetChannelLogo&1=channel:10092&2=Large&3=1&4=true&encoder=image Also a few builds back I added image scaling to sages, so you can scale the images on the fly as well, using Code:
http://localhost:8080/sagex/api?c=GetThumbnail&1=mediafile:845111&encoder=image&scalex=50&scaley=25
__________________
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 |
#344
|
||||
|
||||
Is there any way to make the sagex-api.log recycle? It's consuming my hard drive because I use the api so much:
|
#345
|
||||
|
||||
If you have 24 gb log file, then there is probably an issue somewhere. Can you send me a portion of the log file... I suspect there must a large repeating section in the log.
But to answer your question, yes, you can reconfigure the logging, even turn it off if you want, but it requires tweaking the log4j settings. You'll need to change the "Appender" to something like the org.apache.log4j.RollingFileAppender and then add a new configuration options to set the max size, # of backups, etc. You can configure this from the bmt web ui Configuration -> Log4j Logging -> Logging, and if you search the guide that is linked from that configuration page, for "RollingFileAppender Options", then you find the options. I suspect you'll want to add options like... log4j.appender.SAGEX.MaxFileSize=10MB log4j.appender.SAGEX.MaxBackupIndex=1 I've attached a screenshot of the configuration page in bmt, and I've highlighted the sections that you'll need change/edit. And don't forget to click Save.
__________________
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 |
#346
|
|||
|
|||
What is the "STATIONID"?
__________________
-Craig |
#347
|
||||
|
||||
__________________
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 |
#349
|
||||
|
||||
Well, just use airing.GetChannel().GetStationID()...
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2 TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad |
#350
|
|||
|
|||
Can't really do that with the http api so it would be best for it to be in the XML for each airing like ChannelName is now.
__________________
-Craig |
#351
|
||||
|
||||
Quote:
That'll be in the next build, which will likely go out today.
__________________
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 |
#352
|
|||
|
|||
Thanks!
__________________
-Craig |
#353
|
||||
|
||||
Thanks for the fix on the log size stuckless.
There aren't any errors, just excessive use |
#354
|
||||
|
||||
When a method asks for a Sage Favorite object, what do i pass in as the parameter?
Edit, I see there is a favorite ID for favorites. So how can i obtain this ID? I know both the media file id and airing id, how do i get favorite id from that? Currently the only way i see is to call getFavorites() and search for a match through all that junk. Last edited by bradvido; 05-13-2011 at 07:31 AM. |
#355
|
|||
|
|||
FavoriteAPI.GetFavoriteForAiring(Airing)
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#356
|
||||
|
||||
Is that possible to call using this remote API?
Edit: Doh. Just saw it. That FavoriteAPI part threw me off. It's just under api?c=GetFavoriteForAiring Thanks! Last edited by bradvido; 05-13-2011 at 07:56 AM. |
#357
|
||||
|
||||
What would be the best way to determine what recorded episodes are currently available for a given favorite. I see that it give me a list of airings, but i need to know which shows are currently available to watch for a favorite.
|
#358
|
|||
|
|||
I don't use the HTTP interface too often so you'll have to massage this somehow into an appropriate HTTP call, but this call should do it:
FilterByMethod(GetFavoriteAirings(GetFavoriteForID(12345)), "GetMediaFileForAiring", null, false) That call should return all the recordings of the favorite. Replace the 12345 with the favourite id number.
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#359
|
|||
|
|||
In case anyone is interested, I actually derived the above Studio call from the Groovy script below:
Code:
def fav = FavoriteAPI.GetFavoriteForID(153502) def airings = FavoriteAPI.GetFavoriteAirings(fav) def recordings = Database.FilterByMethod(airings, "GetMediaFileForAiring", null, false) println "Found ${airings.size()} airing(s) and ${recordings.size()} recording(s) of favourite '${FavoriteAPI.GetFavoriteDescription(fav)}'" // Equivalent Studio expression should be: // FilterByMethod(GetFavoriteAirings(GetFavoriteForID(153502)), "GetMediaFileForAiring", null, false) Found 74 airing(s) and 1 recording(s) of favourite 'The Office First Runs' And, indeed, I have one recording of The Office on my system right now.
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#360
|
||||
|
||||
Quote:
Code:
EvaluateExpression("FilterByMethod(GetFavoriteAirings(GetFavoriteForID(153502)), \"GetMediaFileForAiring\", null, false)");
__________________
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 |
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 |