|
SageMC Custom Interface This forum is for discussing the user-created SageMC custom interface for SageTV. |
|
Thread Tools | Search this Thread | Display Modes |
#81
|
||||
|
||||
I think using the unprocessed title/series title for fan art storage is still really the best way to do this. I thought about using MediaFileID or AiringID for storing fan art, but it makes using one set of fan art for all episodes of a TV series problematic. If we want to process the title at all (i.e. to create a SortTitle), then the processed result should be stored in a different field or generated on the fly.
Aloha, Mike Edit: Do the AiringID's for different episodes in a series contain a common substring with a number for the episode completing the ID #? I seem to recall something like that. If this is the case then maybe something based on AiringID could work. Of course you would then lose the ability to intuitively browse the fan art folders, so I'm not sure if this is a good approach after all. Just thinking out loud.
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) Last edited by MeInMaui; 03-10-2009 at 03:21 PM. |
#82
|
|||
|
|||
Quote:
Sorry for all the ideas and no solutions, if I could I would.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#83
|
||||
|
||||
Quote:
Code:
House #1: MediaFileID=3813215 , AiringID=3756711, Show ID: EP6883590105 House #2: MediaFileID=3782330 , AiringID=3734218, Show ID: EP6883590104 House #3: MediaFileID=1910789 , AiringID=1836435, Show ID: EP6883590087 |
#84
|
||||
|
||||
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
#85
|
|||
|
|||
Quote:
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#86
|
||||
|
||||
My sentiments exactly.... I think that using the Original Title is still probably the most effective means to select/store the fanart, especially given that tools, outside of sage will most likely process/download the fanart. Using an ID would be great, but I'm not sure how feasible it would be to implement.
As for the the title munging, "Robot, I", i like the idea of doing that as a display option, and similarly, we could provide several different options, such as Movie Display, TV Display, etc, and let a display api (much like was proposed earlier) take care of the details. Code:
phoenix_api_GetMediaTitle(mediaObject) Maybe as ep noted, we could combine SeriesTitle,MovieTitle, etc into a single Title attribute, such as MediaTitle, or OriginalMediaTitle.
__________________
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 |
#87
|
|||
|
|||
Quote:
|
#88
|
||||
|
||||
Okay, read the entire thread, so I'm up-to-date. I've got a few questions, just want to make sure we're covering the bases
1. Are we sure we want to use titles for the filenames? Titles can contain non-valid characters for filenames (i.e. colons, foreign titles with unicode characters, etc). What do the scrapers do with multi-disc DVD sets and titles? Also, titles can change- this should be less of an issue if the user is using a scraper, but some users could rename movies, if they have extra-long titles. (Indiana Jones and the Raiders of the Lost Ark -> Raiders of the Lost Ark). Might we want to consider using MediaFileID for the filenames instead of title? That should be more persistant than titles, though it's unfortunately far less recognizable. 2. On the metadata properties API- it's not clear, but one important function may be missing. Either the "SetMediaFileMetadata()" function needs to accept "null" in the parameter field and take that to mean it needs to remove the named metadata field, or we ought to have a "ClearMediaFileMetadata()" function which allows us to remove metadata properties entirely. I'm assuming that if you call "GetMediaFileMetadata()" function with a metadata name that hasn't already been set, the return is null. 3. On the fanart API.... I see two levels for TV; Show and Season. I can see not caring to have episode-specific fanart, but one thing I'd like to confirm. I hope that there is an Episode->Season->Series child-parent relationship, and I can request fanart for an Episode, and if there's no fanart specific to that, it goes up the tree, and checks the season, and if there's no fanart for the season, it will fetch fanart from the Series. I wasn't clear on whether the API works this way just from reading what was posted. Cheers Ikarius
__________________
SageTV 6.6.2, SageMC+CenterSage Theme Server: Intel Core2 Q6600, 8gb memory, 3x 1tb WD EACS drives, software RAID5 2tb capacity, 4gb Flash boot drive, Ubuntu 8.0.4 Server edition Capture: 1x HD-PVR -> Motorola DTC6200 Clients: 1x STX-HD100 1x STX-HD200, Windows & OSX Clients |
#89
|
||||
|
||||
I've seen a lot of good ideas in this thread, but wanted to throw in my own $0.02. I've been doing the Fan Art for Default STV import, and it would be nice if I could take advantage of the automatic scraping tools and the Jar code too. So,
(1) The automatic scraping and storing of everything in folders will be nice, but you should remember that there is a lot of content out there with no fanart or with incomplete fanart (background but no banner, or vice versa). TheTVDB.com is the only source I've found for banner art, but they don't do movies or sports. In fact from what I've seen, people have tried to post fanart for sports and they have been removed. I've found myself creating a lot of fanart manually. With the current central folder system: (central banner directory)\tv\ (central banner directory)\movies\ (central banner directory)\music\ (central background directory)\tv\ (central background directory)\movies\ (central background directory)\music\ It's easy to creat a new banner or background and drop it in the correct location. With the new layout you are proposing with a folder for each show and every show folder having several subfolders, it will be more tedious to manually add fan art (and easy to make type-o's). One other (very minor) drawback is that all those folders are a little inefficient space wise (with 64kB blocks each empty folder takes 64k) and take a little longer to process when running backups, anti-virus, etc. (2) Regardless of how the folder structure shakes out, I do have one other comment. I have added another feature to my latest (unreleased) version of the Fan Art for Default STV import which you may want to copy. If no fan art exists for a given show, I check the Category and Subcategory and look for a genre-specific banner or background. I've started creating some generic category banners (movies, sports, reality, science). When I display the generic banner, I print the Show Title over the top of it. The way I have implemented it is to create another folder: (central banner directory)\genres\ I name the banners <genre>.jpg. Anyway, I haven't released it yet since I don't have many genre banners created to use with it yet, but I have been using it on my main Sage Box for about a week. If you like the idea, you are free to implement it in SageMC. But, I was hoping there might be a way to work support for this into the Phoenix API too.
__________________
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 |
#90
|
|||||
|
|||||
Quote:
Code:
$illCharFileRegEx = "('|\"|\\\\|/|\\||<|>|:|\\*|\\?|\\&|\\;|`)"; Quote:
Quote:
Quote:
Code:
if (GetMediaFileMetadata() == "") Quote:
Code:
originalVideo.mpg originalVideo.jpg Last edited by evilpenguin; 03-10-2009 at 04:46 PM. |
#91
|
||||
|
||||
Quote:
Quote:
Last edited by evilpenguin; 03-10-2009 at 04:56 PM. |
#92
|
||||
|
||||
Quote:
Over time I will add in as much functionality as we think is necessary, and everyone can enjoy the same benefits/functionality. Quote:
Quote:
Tiki, while I agree that the new layout is fairly verbose, it does offer some additional benefits in that you can now have multiple fanart images per sections (banners, backgrounds, etc) and maybe users could even select which one they want. Perhaps your main concern about manually adding metadata could be addressed the tools by allowing a comand that would publish metadata to a location given a url (to download) and a title and file type?? As for item #2, maybe incorporating genres fanart is something that we could add in after the initial release. I think that if it were in the phoenix api then it could be shared across plugins.
__________________
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 |
#93
|
||||
|
||||
Quote:
On the Titles- Win32 isn't the only platform. We (in theory) support Linux and MacOS. I'm not sure if that regex sufficient? I'm not sure if most filesystems allow files to contain characters with say, german umlaut's and the like. On the other hand, I'm not sure if Sage supports those characters in it's titles. I think it uses unicode underneath, as it's java... but I've never tried. Just a few more things to make sure we're handling. I'm almost more inclined to use an inclusion-based regex than an exclusion-based regex, as then we're absolutely positive nothing which can break things gets in. Cheers Ikarius
__________________
SageTV 6.6.2, SageMC+CenterSage Theme Server: Intel Core2 Q6600, 8gb memory, 3x 1tb WD EACS drives, software RAID5 2tb capacity, 4gb Flash boot drive, Ubuntu 8.0.4 Server edition Capture: 1x HD-PVR -> Motorola DTC6200 Clients: 1x STX-HD100 1x STX-HD200, Windows & OSX Clients Last edited by Ikarius; 03-10-2009 at 05:00 PM. |
#94
|
||||
|
||||
Titles? Again.
I don't think the issue of titles and new properties has been resolved... evilpenguin, this is what I propose for new properties...
Code:
MediaProviderDataID MediaType MediaTitle SeasonNumber EpisodeNumber EpisodeTitle StarRating OrignalAirDate We make the existing Title be whatever it is today, and that will be fine for default stv users (including myself). Personally I think that StarRating should actually be UserRating since there is no guarantee that "stars" will be used to display it, but i'm ok with leaving it as StarRating MediaProviderDataID is a unique id assigned by the metadata provider that wrote the properties.
__________________
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 |
#95
|
||||
|
||||
Quote:
As for MediaProviderDataID, lets do what you originally said and take the website name... Code:
www.imdb.com www.thetvdb.com www.themoviedb.com www.someWebsite.com Code:
MediaProviderDataID=imdb:12345;theMovieDB:12345;theTVDB:12345;someWebsite:12345 |
#96
|
||||
|
||||
Quote:
|
#97
|
||||
|
||||
Quote:
Since we are using folders for each image type (banners, posters, backgrounds) there can be more than 1 image per folder. So we need a way to identify which image is the primary one. I chose the rule that an image that has the same name as the processed movie title is the primary image. So for the tv show Bones, the primary image is... TV/Bones/Banners/Bones.jpg If there isn't a primary image, then then it will find all images in the folder and simply select the first one... (roulette) So in line with the concept of a "primary" image, then SetFanartBanner(mediaItem, imageFile) will make the passed file the Primary Image based on the rules above. ie, it will ensure that the file that you pass in, will be called Title.jpg. If there is an existing primary image, then it is renamed, and the new image is named as the primary image.
__________________
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 |
#98
|
||||
|
||||
On the extra properties, How about a "ParentalRating" Property, as well as "UserRating"?
I've been looking at this as I'd like to display Parental (MPAA in the US) rating images for movies, and I'd like to put something together that has at least a small chance of working for folks outside the USA. I know jaminben is interested in this as well, and having the approach on this standardized would be nice for STV development. I see a couple of potential approaches... 1. The Scrapers could pull the country from the SageAPI "GetCountry()" function, and we can establish a mapping from the country list supported by sage to the appropriate country ratings carried on IMDB, and the scraper can pull the appropriate rating. 2. The scrapers could simply pull and store the whole list of ratings from IMDB, and someone can put together a java function which checks the Country set in Sage, parses out and returns the appropriate rating from the whole list. I would expect the ratings to simply remain stored as strings, which we could either display directly as text, or use as the basis for picking an image. Thoughts?
__________________
SageTV 6.6.2, SageMC+CenterSage Theme Server: Intel Core2 Q6600, 8gb memory, 3x 1tb WD EACS drives, software RAID5 2tb capacity, 4gb Flash boot drive, Ubuntu 8.0.4 Server edition Capture: 1x HD-PVR -> Motorola DTC6200 Clients: 1x STX-HD100 1x STX-HD200, Windows & OSX Clients Last edited by Ikarius; 03-11-2009 at 08:32 PM. |
#99
|
||||
|
||||
Quote:
The Lord of the Rings (would be under letter L instead of T).
__________________
Server: HP AMD64 dual core running Win7 64bit (MCE disabled) with 4G memory Tuners: 2 PVR-500(disabled), 3 HDHR and 1 HDPVR Clients: 2 HD200 and 1 HD100 TV: 70" and 52" and 42" Media Storage: ReadyNas 8TB Recording media: 300GB + 200GB+ 250 GB Network: Gigabit backbone' Thanks to all the developers who work on SageMC, code, utilities and plug-ins to make SageTV better!!! |
#100
|
||||
|
||||
Can you copy the image rather than rename it? When we bulk pull down images, the only way to be sure we don't unessisarily download the same image is to leave it with the same file name as the metadata site has it.
|
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 |