|
SageMC Custom Interface This forum is for discussing the user-created SageMC custom interface for SageTV. |
|
Thread Tools | Search this Thread | Display Modes |
#41
|
||||
|
||||
Quote:
Quote:
Quote:
Also, anyone mind if I ask Opus4 to move this thread to the Studio forum? Last edited by evilpenguin; 03-07-2009 at 08:40 PM. |
#42
|
||||
|
||||
Just some other thoughts around the API for this stuff....
First, since sage will be adding the ability to store additional metadata, maybe we could build some api calls around that, which would allow us to access the data now from the properties and then later change the api to use the sage calls... for example, we could introduce the following api... Code:
phoenix_api_GetMediaFileMetadata(mediafile, key) Currently the api that is being tested, has the following apis... Code:
phoenix_api_GetFanartBackground(mediaObject) phoenix_api_IsFanartEnabled() : boolean phoenix_api_SetIsFanartEnabled(boolean) phoenix_api_SetFanartCentralFolder(dir) Code:
phoenix_api_GetFanartBanner(mediaObject) phoenix_api_GetFanartPoster(mediaObject) phoenix_api_GetFanartWHATEVER_OTHER_IMAGE_ARTIFACT_WE_NEED(mediaObject) Code:
phoenix_api_GetFanartBackgrounds(mediaObject) : Returns String[] phoenix_api_GetFanartPosters(mediaObject) : Returns String[] phoenix_api_GetFanartBanners(mediaObject) : Returns String[] phoenix_api_SetFanartBanner(mediaObject, file) phoenix_api_SetFanartBackground(mediaObject, file) phoenix_api_SetFanartPoster(mediaObject, file) phoenix_api_MetadataSearch(title|mediaObject) : Returns MetadataSearchResult[] phoenix_api_GetMetadataResultName(MetadataSearchResult) phoenix_api_GetMetadataResultYear(MetadataSearchResult) phoenix_api_GetMetadataResultScore(MetadataSearchResult) phoenix_api_SetMetadata(mediafile, MetadataSearchResult) : Update metadata from a selected search result
__________________
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 |
#43
|
||||
|
||||
Looks great, thanks for hammering that out
|
#44
|
|||
|
|||
Quote:
Quote:
I don't mind if it gets moved.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders Last edited by jaminben; 03-08-2009 at 03:46 AM. |
#45
|
||||
|
||||
FYI. I have the next release of SageMC working great with Stuckless' Fan Art API for TV, Movies, and Music. You have no idea how happy I was to highlight all of my old lookup code and hit DELETE!
Aloha, Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
#46
|
|||
|
|||
Whoa, that was quick, I was only testing this a few hours ago. Sounds very sweet, can't wait to try it On the flip side this also means I've got to change my two imports as well. Oh well it shouldn't be too hard.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders Last edited by jaminben; 03-08-2009 at 08:23 AM. |
#47
|
||||
|
||||
That's great news!
__________________
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 |
#48
|
||||
|
||||
Ok, So I'm trying to get my head around "how" the folder layout structure will work, and what types of media will go into each Folder. At face value it seems pretty straight forward, TV goes in TV and Movies go into Movies. But when you start considering things like,
It starts to get a little confusing. What I propose, is that we follow this model, and call the folders Quote:
Either way, if we use TV/Movies or Recordings/Vidoes we need to document very clearly what types of media will go into each folder, since naming them on their own, it not clear enough. If we stick with the TV/Movies model (which I like better, based on intent), i think that we'd need to add some extra logic to the tools to ensure that ALL TV types files put their media in TV folder, and all Movie type files put their media in the Movies folder, etc. That's my cents for now
__________________
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 |
#49
|
||||
|
||||
Quote:
edit: Sorry for not using more details, but I'm on my way out the door. |
#50
|
|||
|
|||
I'm going to go off route a bit and ask for something that could proberly be done with studio but maybe better handled with your java code. Thats if Sages's new api can work the way I think it can.
What I was thinking was... could your code take the season data for a show and using Sage's new api's return the total number of season's available and also allow me to seperate those seasons in a selection list? Currently if I have 3 seasons of Lost those 3 seasons and all their episodes will all appear in the selection list. I think it would be better to split those seasons up and somehow allow a season selection option. I've attached a screenie showing what it could look like. Cheers Ben
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#51
|
||||
|
||||
Quote:
I'll carry on using the "TV/Movie" notation.
__________________
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 |
#52
|
||||
|
||||
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 |
#53
|
||||
|
||||
Quote:
For a recording, I think the Fanart API should search the TV folder first and then cross over to the Movie folder if nothing is found. And for a video library item it should search the Movie folder first and then the TV folder. This would allow movies that are considered recordings to get picked up and TV programs that are moved to the video library to get picked up as well. Music is naturally separated from video items, so that shouldn't be an issue. The trick is dealing with different media that end up with the same title (like M*A*S*H the movie vs. M*A*S*H the TV series). As long as the movie is in the video library section and the TV series is in recordings, the above approach should work fine. But if you move the TV series to the video library, then there could be confusion. I don't know how to handle that situation unless the ShowID or AiringID were somehow used to distinguish them. Aloha, Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
#54
|
|||
|
|||
Quote:
Here's a link to my original post explaining whats going on. Many Thanks edit: Maybe vertical as well
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders Last edited by jaminben; 03-08-2009 at 12:35 PM. |
#55
|
||||
|
||||
Quote:
Ben.... lets finish central fanart improvements and then we'll look into these other things for you
__________________
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 |
#56
|
||||
|
||||
I just wanted to give an update on the testing / progress.... I've been testing with Ben and Mike, and the testing has been going well.
Recently I added support for "our" new folder layout but not much testing has been done on that yet. The apis implemented so far include... Code:
phoenix_api_IsFanartEnabled() : boolean phoenix_api_SetIsFanartEnabled(boolean) phoenix_api_SetFanartCentralFolder(dir) phoenix_api_GetFanartCentralFolder() phoenix_api_GetFanartBackground(mediaObject) phoenix_api_GetFanartBanner(mediaObject) phoenix_api_GetFanartPoster(mediaObject) phoenix_api_GetFanartBackgrounds(mediaObject) : Returns String[] phoenix_api_GetFanartPosters(mediaObject) : Returns String[] phoenix_api_GetFanartBanners(mediaObject) : Returns String[]
__________________
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 |
#57
|
|||
|
|||
Quote:
One other thing, if I'm using: phoenix_api_GetFanartBanners(mediaObject) How should the actual banners or any other images be named if their is more than one type of that image. So for example the show Bones has 3 banners available, should they be named: Bones.jpg Bones1.jpg Bones2.jpg etc....
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders Last edited by jaminben; 03-09-2009 at 08:25 AM. |
#58
|
||||
|
||||
Currently if you call GetFanartBackgrounds() it will return all .jpg files in the directory. Names don't matter in Backgrounds/ , Posters/, or Banners/ folders, so it could be as you described, or simply, 1.jpg, 2.jpg, 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 |
#59
|
||||
|
||||
What will getBackground() return if there are multiple backgrounds? The lowest in the sorting order?
|
#60
|
|||
|
|||
Currently it gets the first one it comes to, so title.jpg will always come first over title1.jpg.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HD200 FanArt | vexhold | SageMC Custom Interface | 6 | 12-22-2008 09:45 AM |
Digital in Central Florida | melgish | Hardware Support | 0 | 04-04-2008 08:50 AM |
Central European Character problems | alanwww1 | SageTV Software | 0 | 12-15-2007 12:20 PM |
SageTV 2.1 improvments and fixes? | tankd0g | SageTV Software | 2 | 12-09-2004 10:27 PM |