|
Batch Metadata Tools This forums is for discussing the user-created Batch Metadata Tools for SageTV. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
getting banners and other fanart using the phoenix api
a request and question about getting banners and other fanart using phoenix
api request: GetSeriesBanners, Posters, and Backgrounds - to return an array of all the series banners posters and backgrounds... ie the same thing as GetFanartBanners, etc... Resolving fanart for items that don't have a mediafile (ie airings that are scheduled in the future). How do you do this? It used to work... but now all calls to GetFanartXXX when i give it an airing object (ie mediafile object does not exist) return the same images as the first time i called it... it could be a problem/bug in my code but it used to work and all the debugging i've done points to me requesting the information correctly (ie im passing it the correct airing object). Also i use the same code for displaying mediafiles that do exist (ie recordings already completed/in progress) and that does work as expected...
__________________
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 |
#2
|
||||
|
||||
Quote:
John |
#3
|
||||
|
||||
Quote:
Thanks stuckless. John |
#4
|
|||
|
|||
sweet thanks... working almost 100%
for titles that i am using the mediatitles.xml file to get a match on (ie. shows like Hawaii Five-0, Parenthood, Castle, etc) i do not get any fanart for them... I assume that's because the fanart title includes the year ie for parenthood, show title = "Parenthood", but the fanart title = "Parenthood (2010)"
__________________
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 |
#5
|
||||
|
||||
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 |
#6
|
|||
|
|||
oki doki.. no big deal just thought i should point it out in case you hadn't seen it
not sure if saw this part of the original post or not... but just in case here it is again
__________________
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 |
#7
|
||||
|
||||
GetSeriesXXX was something that I had recently added (for the Android app I'm working on), so it's not a complete. I'll make a note to add in the missing APIs.
__________________
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 |
#8
|
|||
|
|||
thanks
one more quick question... Is fanart enabled (phoenix_fanart_IsFanartEnabled() returns true) on a system wide basis? (ie Fanart is enabled at the server level (via bmt web ui) and then all clients (including full pc clients) will inherit the servers setting? Or does each full client need to be configured to enable fanart seperately? And if so (which i think is the case) how do you recommend plugins accomplish setting that up ... Depending on Phoenix core services and setting it up in its setting, or have options to set the following two (and any other?) properties in the plugins option menu somewhere? Code:
phoenix/mediametadata/fanartCentralFolder=PATH_TO_FANART_FOLDER phoenix/mediametadata/fanartEnabled=true
__________________
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 |
#9
|
|||
|
|||
Just for reference you can already get series posters,banners, and such by using the fanartartificact part of the phoenix.fanart api. I use it in diamond you can get single or groups.
Code:
phoenix.fanart.GetFanartArtifacts(MediaObject,"tv",null,"poster",null,new HashMap<String,String>()) This is what I do in diamond. |
#10
|
||||
|
||||
Quote:
Since phoenix core would be required on the client as well, then the user could use the plugin configuration for phoenix-core to set the settings. Alternately, plugins can add their own configuration UI for setting the values. If a plugin does this, then I would urge the developer to use the APIs and not set the properties directory. ie, phoenix_fanart_SetIsFanartEnabled(true|false) phoenix_fanart_SetFanartCentralFolder(Folder) It is recommended to use the APIs since there can, in theory, be different fanart implementations, and different fanart implementations may not use the phoenix configuration properites to determine the central folder, etc.
__________________
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 |
#11
|
|||
|
|||
Quote:
I don't have phoenix core services installed on the client (but do on the server) so i dont think its required that the core services be installed on each client (at least fanart works on my setup without them installed, just the apis). if i set up my own ui for enabling/disabling fanart on the client I'll use those apis, thanks On more question is that if fanart is disabled on the server can it be enabled on the client? (I'll test that out too if you're not sure when i get around to setting up a fresh client.)
__________________
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 |
#12
|
||||
|
||||
Quote:
If you disable the fanart on the server, then it may still work on the client, but I'm not sure how well it would work. BMT will only store fanart if fanart is enabled on the server.
__________________
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 |
Phoenix API | stuckless | SageTV Customizations | 264 | 03-17-2011 11:36 AM |
Latest version of Phoenix API and SageMC | tonysathre | SageMC Custom Interface | 3 | 12-30-2009 12:27 AM |
Question about Updating Phoenix API | craigap | SageTV Customizations | 1 | 08-25-2009 12:58 PM |
Are the Phoenix API libraries required? | mtenboer | SageMC Custom Interface | 5 | 05-10-2009 03:07 PM |