|
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 |
#41
|
||||
|
||||
Ben,
I'll look at adding the delete method after the initial release. I think they are valid, although the "DeleteAll" can be a bit scary. The title stuff, is basically "the fundamental flaw" that I mentioned earlier, but let me try to explain this a little better. When you fetch metadata/fanart for existing item in the library, it's fanart is downloaded using the MediaTitle field as determined from the metadata that was fetched. Because we can't update the "MediaTitle" field for existing items, then there is a disconnect between the downloaded "title" folder name and the one that Sage uses. Once the SetMediaFileMetadata() is added, then this disconnect will go away. I think that maybe I need to change the existing apis until the Sage apis are there. I can change the "on demand" apis to force the existing title and NOT use the one fetched from the metadata.
__________________
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 |
#42
|
|||
|
|||
Quote:
Quote:
Star Wars Episode I - The Phantom Menace it would then look for: Star Wars Episode I The Phantom Menace Not sure if theirs alot of work involved or not but it may also prove to be a good backup plan even when the Sage api's are completed. edit: On second thoughts is it a good idea to use the metadata to label the folders? I'm sure you've discussed this with the other dev's but what happens when you have a metadata title that doesn't conform to standard naming policys like Aeon Flux? Where the "A" is sometimes changed to an unusual character. edit 2: Sweet, just noticed I've become a Sage Fanatic
__________________
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-27-2009 at 10:30 AM. |
#43
|
||||
|
||||
Quote:
For imported videos, the showtitle is the filename including path (eg: "c:\my movies\Spiderman.avi"). Using Sage's current implementation of .properties files, the show title cannot be changed, but the episode title can. In the properies file, the field "title" actually sets the episode, not the show title. So, for imported videos, the episode title is typically used to hold the movie name. In the fan art import I created, I use the showtitle for sage recordings and upcoming items in the guide, but I use the episode name for imported videos and dvds. When creating my import, I did not want to go through the work of stripping the path and extension from the filename used as the Sage Title. Plus, in my own video library, the filename is often not the full movie title (eg: "Star Wars: Episode V - The Empire Strikes Back" is saved as "TheEmpireStrikesBack.avi") and I use the RW MetaData Import to set the title inside Sage. Perhaps the better way would be to try to match both the ShowTitle (file name) and Episode to the fan art. So, what field does the Phoenix API use to look up fan art?
__________________
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 |
#44
|
|||
|
|||
Another option would be for you to concentrate on getting the movie scraper fully operational using XMBC scapers and to use EP's scaper for TV shows. To be totally honest and please don't take this the wrong way (I love your work as well) but IMO EP's scraper for TV shows is the mutts nuts and so far works flawlessly. Perhaps you two could get together to totally integrate both scrapers into one happy package. This would also loosen the burden from you for grabbing banners as EP has this sorted and I don't think movies really support banners.
I think I read that you where going to allow this as an option anyway, but rather than an option to add his work as an addition would it better to have one package? Obviously you two would need to agree to this. Just a thought
__________________
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-27-2009 at 10:49 AM. |
#45
|
||||
|
||||
Quote:
The issue here, isn't the titles, it's the fact that the titles are not updated AFTER the media has been imported, which is really the problem that Ben has described. Maybe an example will shed some light on this... If I add "Terminator.avi" to my video library, and the metadata plugin is installed, it may, for whatever reason think that "Terminator" is actually "Terminator 2", and it adds it as "Terminator 2". The MediaTitle is set to "Terminator 2". Later in SageMC, or Default STV, using the BMT plugin, you can search and choose "Terminator" as the movie you wanted. The plugin will download the Fanart for "Terminator" and put everything in the correct directory, BUT, the "MediaTitle" is STILL "Terminator 2", and as a result the new fanart is not picked up. This is basically a bug in the metadata plugin, because it doesn't "rename" the video title to be what was selected from the search list. But, since we can't Set the MediaTitle field, then we can't actually do a rename anyway. Fundamentally, using titles, filename is probably the wrong way to do this.... but in light that we can't set sage properties on the fly and there are no better solutions offered, then I've opted to stick with the flawed title method. In the current solution, if you are importing videos and running EP's tool or my metadata tools on the videos prior to importing them, then the title matching will work. This is only a problem if you are looking to CHANGE an existing imported media item using the metadata plugin stvi that i've added to the 2.0 release of bmt. Hope this helps to clarify the issue??
__________________
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 |
#46
|
||||
|
||||
Quote:
That's why in the phoenix apis i've left the "implementation" of metadata/fanart fetching pluggable, so that another developer can come along and decide to add their own implementation to phoenix. Also the metadata tools that I wrote contains a fully pluggable system for adding additional scrapers, etc. That's how I was able to to include the xbmc scrapers into my metadata tools. I can't speak for EP, but I think that we'll get this sorted out....
__________________
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 |
#47
|
|||
|
|||
Quote:
Another idea for future additions to the pheonix api could be an option to allow updating of either metadata or images.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#48
|
|||
|
|||
I've just tried Metadata Tools STV Plugin 2.0 Beta 7 and for some reason its not downloading any images. It does find a list of available titles to select but thats it. I have only installed this on my client PC as the server is in use currently, does this matter? I also assume that I don't need to update my STVi as all the hard work and changes are done in the jar files.
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 |
#49
|
|||
|
|||
I don't know what other people think but could you strip out the month and day for phoenix_api_GetMetadataSearchResultYear when searching movies. I would prefer it to be Title (2009) rather than Title (01-01-2009). The main reason for this is that I would like to be able to use GetMetadataSearchResultProviderId in the same table search result so that the user can pick a prefered site to gather their data. However having Title, release date & dataprovider requires the bar to be massive and it looks out of place. If you or anyone else disagrees then leave it alone
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#50
|
||||
|
||||
Try not to get too wrapped up in the issues with metadata stuff, Sean and I are trying to get that straightened out. You can just work under the assumption that the metadata we've agreed upon will be in the proper place.
It probably won't be as seemless as you want at the beginning, but we'll make progress on that behind the scenes. |
#51
|
||||
|
||||
Ben.... there's a new beta8... it fixes that issue... sorry about that... too many little things changing.
__________________
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:
Quote:
Cheers
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#53
|
||||
|
||||
Quote:
As for the other stuff.... the stvis that provider are really meant to be a poc. Mike helped me alot with those, and ultimately, it would be nice if it allowed you to select a particular provider, instead of using the default list. (BTW, I don't know if you noticed that in the setting menu, you can set the order of the metadata providers). The "user selection" stuff will get updated over time... hopefully other people will simply contribute stvis that they would prefer and I can include them in the package. And as EP noted, over time, we'll make the metadata stuff a lot more seemless. The important thing is that the base apis are there, and being used, so that when that happens, it'll just be a minor jar update.
__________________
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 |
#54
|
|||
|
|||
Quote:
Quote:
Quote:
Cheers Ben edit: One more thing, when GetMetadataSearchResultProviderId uses IMDB it carries the xml extension with it. 21 Grams (2003) IMDB.xml edit 2: The file naming discrepencies appears to be all fixed up, I've scanned around 30 of what I would call difficult titles and none have come back not working. Sweet job
__________________
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-27-2009 at 04:57 PM. |
#55
|
||||
|
||||
Quote:
Code:
ReleaseDate=1-20-2007 Year=2007 |
#56
|
|||
|
|||
Ok, So I was playing with the latest beta of your plugin and I thought it would be a good idea to carry out a force_full_content_reindex=true. So having your plugin set to scan all new files I proceded with the re-index. After around 2 hours it finished scanning and I checked out the client and too my surprise it had found about 90%+ of my movies, added the correct metadata for each and downloaded all images, very cool.
However its not all good news as for some reason the pheonix fanart api's are not picking up any images except those that failed to locate any metadata during the reindex. It has found and downloaded all available images for each movie and placed them in the correct fanart folder structure, so I don't see why its not working. I've attached two screenshot to show what I mean. Has Fanart = didn't find metadata but images do work. No Fanart = found metadata but images don't work. Any ideas what I've done wrong? I can't see why its not working as everything is in the correct place. You may also notice that "No Fanart" screenshot uses the "UserRating" to create an active star rating system, but you can also see the user rating in text within the synopsis. I realise this is an IMDB scan and thats just the way it just comes through but is their anyway to remove that from the synopsis text? (future addition). During the reindex process it also added poster images to the acutal movie folder as well as the new central folder system. Not sure if this is due to the old way of using posters or you've kept it in just incase people don't want to use the new method. Many Thanks Ben edit: This is getting rather confusing for me so I appologise if I'm not making any sense but I've noticed something else. When using the old beta of your plugin and I used the phoenix_api_GetMetadataSearchResults(Airing) from within SageMC to grab images and potentially metadata as well it would create a properties file named: Bolt.mkv.properties Using the new beta build (beta 8) and from the full reindex it creates a file named: Bolt.properties Is this the reason why metadata wasn't getting imported with previous builds? edit 2: I've also noticed "If(bmt_api_IsBMTPluginInstalled(), "Enabled", "Disabled")" doesn't seem to work. I assume that if I delete the .properties file associated with a movie then it should stay deleted and not re-appear 5 mins later when this is set to disabled? edit 3: Here's a snippet of my log file. You can see that fanart doesn't work with 50 First Dates but does with a bugs life. Maybe usefull, I dunno!! Code:
Sat 3/28 13:37:02.016 FANART: MediaFileMetadata; key: MediaTitle; value: 50 First Dates Sat 3/28 13:37:02.017 FANART: MediaFileMetadata; key: MediaType; value: Movie Sat 3/28 13:37:02.026 EXCEPTION in getValueAsObject:sage.a.e: Error in method reflection of phoenix_api_GetFanartBackgrounds of java.lang.reflect.InvocationTargetException for:phoenix_api_GetFanartBackgrounds( AiringForBackground ) Sat 3/28 13:37:02.034 filter time = 0 ms Sat 3/28 13:37:02.041 filter time = 0 ms Sat 3/28 13:37:02.057 filter time = 1 ms Sat 3/28 13:37:02.064 filter time = 1 ms Sat 3/28 13:37:02.481 FANART: MediaFileMetadata; key: MediaTitle; value: Sat 3/28 13:37:02.481 FANART: Sage Media File was determined as: MediaFile: [MOVIE, A Bugs Life] for: MediaFile[id=1452766 A[1643649,1508469,"A Bugs Life",0@0826.21:19,91] host=sagewhs encodedBy= format=AVI 1:31:05 1067 kbps [#0 Video[MPEG4-Video 25.0 fps 640x272 40:17 progressive]#1 Audio[MP3 44100 Hz 2 channels 128 kbps idx=1]] \\SAGEWHS\Videos\A Bugs Life.avi, Seg0[Sun 8/26 21:19:31.505-Sun 8/26 22:50:36.705]] Sat 3/28 13:37:02.481 FANART: GetAllFanartArtifacts(); Media: MOVIE; Artifact: BACKGROUND; Title: A Bugs Life Sat 3/28 13:37:02.499 FANART: GetAllFanartArtifacts(); Returning: 3 Artifacts. Sat 3/28 13:37:02.502 filter time = 1 ms Sat 3/28 13:37:02.510 filter time = 0 ms Sat 3/28 13:37:02.526 filter time = 0 ms Sat 3/28 13:37:02.533 filter time = 1 ms
__________________
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-28-2009 at 07:44 AM. |
#57
|
||||
|
||||
Quote:
Quote:
Quote:
Also, if you toggle the setting, you'll have to restart the server in order for the change to take effect. Quote:
I'll do some more testing with the MediaTitle field. Just an fyi... if you do a reindex on you collection, and there are existing .properties with the media items, then they will be used.
__________________
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; 03-28-2009 at 10:10 AM. |
#58
|
|||||
|
|||||
Quote:
Quote:
Quote:
Quote:
Quote:
\\Server\Fanart\Movies\50 First Dates\Backgrounds\image.jpg \\Server\Fanart\Movies\50 First Dates\Posters\image.jpg I hope that helps I'm currently just checking through my jar files and making sure its not my user error as these things usually are.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#59
|
|||
|
|||
Quote:
My bad, I should've read that properly
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#60
|
|||
|
|||
ok. I'm feeling a bit clueless
I want to ru nthe latest pre-release of SageMC (http://forums.sagetv.com/forums/show...237#post353237) which says it requires the latest build of Phoenix API which I downloaded. I see I have some references to Phoenix already in my Sage directory structure but I want to check with those of you more knowledable than me where I should put all of these new Phoenix API files.
Thanks |
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 |