|
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 |
#101
|
||||
|
||||
Quote:
Code:
sagemc_Themes_getThemeBaseDir() You can also try Code:
GetPathParentDirectory( GetDefaultSTVFile() ) Aloha, Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
#102
|
|||
|
|||
Thanks mike figured that is what it was
|
#103
|
|||
|
|||
Just wanted to post an issue I noticed.
If you perform scaling transformation on a .png with say a transulecent center it seems to lose the transulucency and just turns to white or black during the scaling. Rotating it/changing perspectives doesn't seem to do this. Great work again guys I love the new image utilities. |
#104
|
|||
|
|||
Okay got another question about the ImageOverlay in Create Image I am confused about how to call the image path (again )
Code:
{name: overlay, image: 'src/test/images/test_small.png', opacity:0.5, x:100, y:100} So lets say I am using the same image as above as an overlay I am confused on the "/" vs "\\" would I call this like Code:
{name: overlay, image:' GetPathParentDirectory( GetDefaultSTVFile() ) "\\SageMCE\\PLuckyhdSMWScreens\\Themes\\Joker\\kingspade.png" ',opacity:0.5, x:100, y:100} TIA |
#105
|
||||
|
||||
Because the transformation is passed as a string, then when you specify the image, then you need to build it up. THere are several ways that could happend, but he most simplest would be simply string concatenation.
Code:
"{name: overlay, image:'" + GetPathParentDirectory( GetDefaultSTVFile() ) + "\\SageMCE\\PLuckyhdSMWScreens\\Themes\\Joker\\kingspade.png" + "',opacity:0.5, x:100, y:100}"
__________________
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 |
#106
|
|||
|
|||
Quote:
Code:
phoenix_api_CreateImage(phoenix_api_GetFanartPoster(GetElement(WallPosters, 1)),"[{name: overlay, image:'" + GetPathParentDirectory( GetDefaultSTVFile() ) + "\\SageMCE\\PLuckyhdSMWScreens\\Themes\\Joker\\king diamond.png" + "',opacity:0.5, x:100, y:100},{name:scale,width:150,height:-1},{name:rotate,theta:-40}]",false) Code:
phoenix_api_CreateImage(GetPathParentDirectory( GetDefaultSTVFile() ) +"\\SageMCE\\PLuckyhdSMWScreens\\Themes\\Joker\\king diamond.png","[{name:rotate,theta:-40}]",false) TIA for any insight |
#107
|
||||
|
||||
I don't have any insight to offer I haven't extensively tested the overlay, and it might be that it simply doesn't work. If I get a chance, I'll try some tests to see how it works out.
Sean.
__________________
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 |
#108
|
|||
|
|||
Quote:
Another question I noticed when giving transformed images "Tags" to make sure they go in specific folders you are limited to one transformation per tag is this by design? In other words if I do a rotate a 20 and another at 40 if I try and give them the same tag so they go in the same folder the second one in will be an invalid file. |
#109
|
||||
|
||||
New Build 1.36
I've uploaded a new phoenix build for testing. It adds support for fanart genres and actors. It also will look at the GetShowCategory() for TV files and set the mediatype to Movie is the show category is a movie.
FanartAPI phoenix_api_GetFanartGenre(Object mediaObject, String genre) : String phoenix_api_GetFanartGenres(Object mediaObject, String genre) : String[] phoenix_api_GetFanartActor(Object mediaObject, String actor) : String phoenix_api_GetFanartActors(Object mediaObject, String actor) : String[] Genres Genres can be be at the Fanart Folder level or the Media Type level. FANART_FOLDER/Genres/Action/Action.jpg FANART_FOLDER/TV/Genres/Action/Action.jpg FANART_FOLDER/Movies/Genres/Action/Action.jpg A call to phoenix_api_GetFanartGenre(null, "Action") would always return the genre at the top level. A call to phoenix_api_GetFanartGenre(mediaFile, "Action") would return the fanart for the MediaType of the mediaFile, or default to the top level, if there isn't a a genre image for the MediaFile type. Actors Actors can exist in the following locations FANART_FOLDER/Actors/Billy Ray/Billy Ray.jpg FANART_FOLDER/Movies/Actors/Billy Ray/Billy Ray.jpg FANART_FOLDER/Movies/A Good Movie/Actors/Billy Ray/Billy Ray.jpg FANART_FOLDER/TV/House/Season 1/Actors/Billy Ray/Billy Ray.jpg A call to phoenix_api_GetFanartActor(null, "Billy Ray") would always return the actor at the top level. A call to phoenix_api_GetFanartActor(mediaFile, "Billy Ray") traverse the media file actor locations until it finds a match, and finally go to the top level if nothing was found. Like all other Fanart, more than 1 Actor or Genre image can exist for a given Actor or Genre. Supporting Genre and Actor fanart required a huge restructuring of the Fanart Code, so this is considered a test build. Although I have done extensive unit testing on each fanart api call to ensure that nothing is broken, I may have missed something. Set the first post for a complete list of published 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 Last edited by stuckless; 07-04-2009 at 09:45 AM. |
#110
|
|||
|
|||
So question is the actor/genre fanart going to be fetched by bmt eventually?
If not any chance of supporting a central actor folder instead of having to put every actor in it's own sub folder Nice work |
#111
|
||||
|
||||
bmt may eventually fetch actor fanart, but I doubt it will fecth genre fanart.
I used the "phoenix" fanart model for actors and genres because it was easier to adapt to the existing directory based model. I suspect for genres, that someone will post up a "genre" fanart pak that will simply extract into the correct format.
__________________
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 |
#112
|
|||
|
|||
Quote:
As for the Genres it will be intersting to see if anyone does post any. I currently randomly draw fanart from within the genre and it looks pretty good but I am always open for better |
#113
|
||||
|
||||
I really like this method, it gives your collection a much more personal feel than a generic picture.
|
#114
|
||||
|
||||
So for the new Genre support, is there a way to specify banner, background, or poster? Or does it assume only a single type of art for genres?
I currently use background and banners in my STVi. I use the banners for TV shows in the EPG screens and the Sage Recording screens. I use the backgrounds for the detailed info screens for recordings and videos. I use the genre icons when no fan art is found for a recording. I don't currently use posters, but I would probably use the poster-style genre icons for grouping imported videos. And, of course, poster style icons could be used instead of the auto-generated preview thumbnails in many places... OH and by the way, thanks for all your hard work on this - I'm glad to see some of the new features you've added recently and I'm amazed at how much time you must be spending just answering all the posts in this forum, I don't know how you have time to write code...
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2),USBUIRT (multi-zone) Source: Comcast/Xfinity X1 Cable Primary Client: Server Other Clients: (1) HD200, (1) HD300 Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE, HDHR, HVR-2250, HD-PVR |
#115
|
||||
|
||||
Quote:
But from what you are saying, then there should 3 GetXXXGenre calls, one for poster, background and banner. So the API would be... Code:
GetFanartPosterGenre(mediaFile, genre) GetFanartBackgroundGenre(mediaFile, genre) GetFanartBannerGenre(mediaFile, genre) Code:
FANART_FOLDER/Genres/Posters/(image files) FANART_FOLDER/Genres/Backgrounds/(image files) FANART_FOLDER/Genres/Panners/(image files) FANART_FOLDER/Movies/Genres/Posters/(image files) FANART_FOLDER/Movies/Genres/Backgrounds/(image files) FANART_FOLDER/Movies/Genres/Panners/(image files) FANART_FOLDER/TV/Genres/Posters/(image files) FANART_FOLDER/TV/Genres/Backgrounds/(image files) FANART_FOLDER/TV/Genres/Panners/(image files) Quote:
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 |
#116
|
|||
|
|||
Quote:
but to each his own and yes I have decided you are a machine programed by Jeff to code for phoenix all day long with no sleep (seriously I don't konw how you do it.) |
#117
|
|||
|
|||
Stuckless,
CreateImages seems to work great in the 1.33 phoenix build. Is it safe to start using getimage yet? |
#118
|
||||
|
||||
Well, GetImage, passes the unit testing, but I'm not sure it's being used anywhere yet. So I would try it, and see what happens.
__________________
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 |
#119
|
|||
|
|||
Okay I will give it a go currently just scalingimages and then when I createimage I use the same tag just wondering if getimage will be more efficient
|
#120
|
||||
|
||||
Quote:
I know SageMC uses genre icons for categorizing imported videos, and there is a nice collection of these that look like movie clapboards. Based on the size and shape of these, I would say they are similar to the "poster" art. I don't currently use any of this "poster" style genre art in my STVi right now, but I could see a use for it.
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2),USBUIRT (multi-zone) Source: Comcast/Xfinity X1 Cable Primary Client: Server Other Clients: (1) HD200, (1) HD300 Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE, HDHR, HVR-2250, HD-PVR |
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 |