|
SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI. |
|
Thread Tools | Search this Thread | Display Modes |
#161
|
||||
|
||||
Dumb question #1 - Where are the javadocs for the Phoenix API? I saw a mention of them somewhere but I can't find them.
Dumb question #2 - Is there a way to tell if the .jpg file returned by one of the phoenix APIs is 0 bytes in size? Sometimes phoenix returns a good file name (so the .jpg file exists) but the file is 0 bytes in size. I am specifically referring to the phoenix_api_GetFanartxxx() methods. If there is no way to tell directly from the API is there a java method that can be called to check for 0 byte files?
__________________
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. |
#162
|
|||
|
|||
Quote:
http://code.google.com/p/sagephoenix...n/java/phoenix
__________________
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 |
#163
|
||||
|
||||
There is a ...Documentation/api subdirectory in the Phoenix API download. Find it and open index.html.
Aloha, Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
#164
|
||||
|
||||
Quote:
Code:
File file = new File(fileName); long fileLength = file.length(); Code:
boolean fileExists = file.exists();
__________________
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. |
#165
|
||||
|
||||
Thanks to all.
@jreichen (or any other of you gurus!) How do I call these methods directly from Studio? There are only 1 or two sentences in the manual that seem to say you can call some java functions directly by substituting _ for . (or something like that.)
__________________
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. |
#166
|
||||
|
||||
I do very little coding in Studio so I don't know how you would do it. I'm sure somebody else has done a lot of it and could show you. You might also try searching the forums for posts by other members - Opus4 and gkusnick come to mind.
__________________
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. |
#167
|
||||
|
||||
They should look like this in studio:
Code:
java_io_File_length( filepath ) java_io_File_exists( filepath ) Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
#168
|
||||
|
||||
Thanks Mike.
__________________
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. |
#169
|
|||
|
|||
I am curious why you have any 0k files in your fanart folders? I believe there is a setting in BMI to not download 0k files. Then all you need is the hasfanart calls.
|
#170
|
||||
|
||||
Plucky,
I have not found that setting, where is it? I also generally like to program as much error checking as possible. With the code I've written in the past "failure is not an option." 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. |
#171
|
|||
|
|||
Mike,
Have you used the gradient call. Is it not support to make a gradient of the fanart that is passed to it? I get a gradient but it it just a white to transparanent not the fanart to transparent Like I would expect. |
#172
|
||||
|
||||
Quote:
Aloha, Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
#173
|
|||
|
|||
How exactly are you suppose to pull poster based on seasons? I see it created the different season posters but everytime I pull the poster for on item under that season it just pulls the same poster regardless of the season.
|
#174
|
|||
|
|||
It seems Genres haven't been thought out yet in the API.
Although I am not a programmer and maybe this is already decided but I have a suggestion for how the Genres should be organized (basically following the same structure as TV and Movies). Central Folder - Genres - Name of Genre - Backgrounds ------------------------------------------------- Posters ------------------------------------------------- Banners Dave |
#175
|
|||
|
|||
Quote:
|
#176
|
|||
|
|||
Quote:
GetFanartPosterPath returns the correct Season 1, Season 2 etc folders for fanart but when calling getfanartposter it is always returning the poster from season 1. |
#177
|
||||
|
||||
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 |
#178
|
|||
|
|||
Quote:
Now get back to vacation |
#179
|
||||
|
||||
Unfortunately, vacation is done... until the last week of august... then I'm off again
__________________
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 |
#180
|
|||
|
|||
Stuckless,
Excuse the newbie questions but trying to look at the java docs for the phoenix api and see how you are getting pictures in a folder regardless of the name. Is there an exposed call anywhere to send a path and get a .jpg? thanks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Phoenix card reader | gravis12 | Hardware Support | 0 | 03-30-2008 01:38 PM |
Missing API? | GKusnick | SageTV Studio | 0 | 01-16-2007 08:48 PM |
API Changes in 5.0 ? | dflachbart | SageTV Studio | 11 | 05-09-2006 03:21 PM |