SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations > SageMC Custom Interface
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageMC Custom Interface This forum is for discussing the user-created SageMC custom interface for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #41  
Old 03-07-2009, 08:37 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Quote:
Originally Posted by stuckless View Post
I think today, SageMC would still treat them as movie vidoes (even though they are TV shows) and their fanart would be in Movies.
Good point, we'ed need to label the show as Movie/TV in the .properties file so we could sort them properly.

Quote:
Originally Posted by jaminben View Post
Using EP's tool they wouldn't, you can scrape the file and it will place it back into the tv recordings list even though the file is located outside the recording drive. It will also use the old images as it would think its a TV recording again.Then if we create a new grouped TV screen which can filter seasons you could have a new screen which is dedicated to TV shows.
The problem there is that I'm not sure we can add new metadata (SeasonNum, EpisodeNum, etc.) to shows in Sage Recordings. I'll have to ask about that.

Quote:
Originally Posted by jaminben View Post
I was looking at something like this, Series Wide Banners Layout is what I liked best or even Series List Posters Layout.
Wow, those are some good looking screens. I especially like the Series List Poster Layout.

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.
Reply With Quote
  #42  
Old 03-08-2009, 01:25 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
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)
Our implementation would actually read that information from the properties file directly, but later once the Sage metadata api is available, we could simply have our api call GetMediaFileMetadata() directly (again no change to the STV)

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)
I think that I'd like to add the following apis as well, that would allow us to implement the central fanart folder support that is outlined here...
Code:
phoenix_api_GetFanartBanner(mediaObject)
phoenix_api_GetFanartPoster(mediaObject)
phoenix_api_GetFanartWHATEVER_OTHER_IMAGE_ARTIFACT_WE_NEED(mediaObject)
And... ultimately, some search/lookup/write apis
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
Reply With Quote
  #43  
Old 03-08-2009, 02:20 AM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Looks great, thanks for hammering that out
Reply With Quote
  #44  
Old 03-08-2009, 03:43 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Quote:
Originally Posted by evilpenguin View Post
The problem there is that I'm not sure we can add new metadata (SeasonNum, EpisodeNum, etc.) to shows in Sage Recordings. I'll have to ask about that.
Hmmm, pehaps it wouldn't work due to the way the file is named. I don't know, but if the user where to rename the file once its been moved then I dont see the differnce between a sage recording and an imported tv show using your scraper to regather all the required data.

Quote:
Originally Posted by evilpenguin View Post
Wow, those are some good looking screens. I especially like the Series List Poster Layout.
Yeah, I really like that idea and thats the route I'm trying to take, you can start to see this with the images I posted in SageMC screenshot thread.

Quote:
Originally Posted by evilpenguin View Post
Also, anyone mind if I ask Opus4 to move this thread to the Studio forum?[/B]
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.
Reply With Quote
  #45  
Old 03-08-2009, 05:01 AM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
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)
Reply With Quote
  #46  
Old 03-08-2009, 06:02 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Quote:
Originally Posted by MeInMaui View Post
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
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.
Reply With Quote
  #47  
Old 03-08-2009, 08:15 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by MeInMaui View Post
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!
That's great news!
Reply With Quote
  #48  
Old 03-08-2009, 08:34 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
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,
  • Will Sage Recorded Movies go into TV or Movies?
  • Will non sage recorded TV shows (that are not imported into "recording" go into TV or Movies?

It starts to get a little confusing.

What I propose, is that we follow this model, and call the folders
Quote:
Recordings/
Videos/
Music/
Using, Recordings and Videos, makes more sense, since anything that Sage thinks is a Recording will go into Recordings and all other video will go into Videos (whether it's TV or not)

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
Reply With Quote
  #49  
Old 03-08-2009, 10:09 AM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Quote:
Originally Posted by stuckless View Post
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,
  • Will Sage Recorded Movies go into TV or Movies?
  • Will non sage recorded TV shows (that are not imported into "recording" go into TV or Movies?

It starts to get a little confusing.

What I propose, is that we follow this model, and call the folders


Using, Recordings and Videos, makes more sense, since anything that Sage thinks is a Recording will go into Recordings and all other video will go into Videos (whether it's TV or not)

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
Mike would have to back me up on this, but I think we've got enough info on sage recordings to tell if they're TV or Movies so that shouldn't be a problem. As for imported stuff, it doesn't get to join the party until its been properly scraped we should be able to tell which is TV and which is Movies.

edit: Sorry for not using more details, but I'm on my way out the door.
Reply With Quote
  #50  
Old 03-08-2009, 10:12 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
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
Attached Images
File Type: jpg Season Selection.jpg (489.3 KB, 209 views)
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders
Reply With Quote
  #51  
Old 03-08-2009, 11:36 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by evilpenguin View Post
Mike would have to back me up on this, but I think we've got enough info on sage recordings to tell if they're TV or Movies so that shouldn't be a problem. As for imported stuff, it doesn't get to join the party until its been properly scraped we should be able to tell which is TV and which is Movies.

edit: Sorry for not using more details, but I'm on my way out the door.
Even though you may be able the tell if it's a "movie" or not, the current SageMC implementation doesn't do that. It basically treats media as music, recordings (tv), and video (movies).

I'll carry on using the "TV/Movie" notation.
Reply With Quote
  #52  
Old 03-08-2009, 11:42 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by jaminben View Post
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 think this is exactly the type of stuff that should go in a java api. It'll require some thought...
Reply With Quote
  #53  
Old 03-08-2009, 12:27 PM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
Quote:
Originally Posted by stuckless View Post
Even though you may be able the tell if it's a "movie" or not, the current SageMC implementation doesn't do that. It basically treats media as music, recordings (tv), and video (movies).

I'll carry on using the "TV/Movie" notation.
I think TV/Movie makes the most sense from a content perspective, but this does not necessarily match with the SageTV distinction between recording/video library item.

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)
Reply With Quote
  #54  
Old 03-08-2009, 12:31 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Quote:
Originally Posted by stuckless View Post
I think this is exactly the type of stuff that should go in a java api. It'll require some thought...
Cool, I look forward to seeing what you come up with. Here's another request which is totally unrelated to fanart folders so I apologize... Anyway I've been trying to make unlimited horizontally scrolling text work within a limited screen space. Unfortunately it doesn't seem to work all that well within studio and someone else suggested to me that it could possibly be done with java code. It would not only benefit me but could also be used to better enhance the RSS feed, which also suffers from the same issue.

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.
Reply With Quote
  #55  
Old 03-08-2009, 01:35 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
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.
That's a great idea.... I'll add that to the logic.

Ben.... lets finish central fanart improvements and then we'll look into these other things for you
Reply With Quote
  #56  
Old 03-08-2009, 07:13 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
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[]
Reply With Quote
  #57  
Old 03-09-2009, 08:11 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Quote:
Originally Posted by stuckless View Post
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[]
Very nice job Sean, All I need now is a scraper to rearrange all my fanart into their correct folders

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.
Reply With Quote
  #58  
Old 03-09-2009, 10:19 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
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.
Reply With Quote
  #59  
Old 03-09-2009, 11:55 AM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
What will getBackground() return if there are multiple backgrounds? The lowest in the sorting order?
Reply With Quote
  #60  
Old 03-09-2009, 12:04 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Quote:
Originally Posted by evilpenguin View Post
What will getBackground() return if there are multiple backgrounds? The lowest in the sorting order?
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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 06:39 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.