SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations > Batch Metadata Tools
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

Batch Metadata Tools This forums is for discussing the user-created Batch Metadata Tools for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #461  
Old 03-30-2009, 09:44 AM
Tiki's Avatar
Tiki Tiki is offline
Sage Icon
 
Join Date: Feb 2005
Location: Southwest Florida, USA
Posts: 2,009
Quote:
Originally Posted by tmiranda View Post
do you know if Tiki is altering his folder structure to comply with yours?
It is my intention to implement the Phoenix API's eventually because I think they are a good idea. However, I have limited time, I'm not the greatest programmer in the world, and things have been moving quickly. So, I have been waiting for things to stabilize before I take this on. My guess is that I will start experimenting in the next week or two and release something maybe in a month.

-Tom (TiKi)
__________________
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
Reply With Quote
  #462  
Old 03-30-2009, 11:08 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Tiki,

OK, I't will be good when the "standards" settle out. Personally, I like your method better. It's simple yet effective. Having said that, I really do not care what "standard" is used as long as all of the tools (STV, STVi's, scrapers, etc.) comply with it.

Thanks for all of your hard work. I keep threatening to dust off my programming skills and learn Studio and Java. Unfortunately for me the last time I was a programmer I specialized in Unix device drivers and considered anything above the kernel as an "application"!

Tom
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #463  
Old 03-30-2009, 04:38 PM
LehighBri LehighBri is offline
Sage Expert
 
Join Date: Sep 2006
Posts: 694
I recently downloaded this and installed and love it so far. One potential bug I noticed is that when I did my full reindex, it found my DVD fanart just fine, but it stored the picture files in the DVD folder rather than in my central fanart folder. Is that by design? Is there a workaround to store it in the FanArt\Movies folder similar to how TV is stored in FanArt\TV?

EDIT: Some more detail. I am using the default install, no metadata.properties file, default STV. Imported the BMT.stvi and central fanart folder set to T:\FanArt. Forcing reindex did not pull in the TV images to T:\FanArt\TV. The only way to get images to T:\FanArt\TV is to do the manual scan on a recording.
__________________
Server: Sage 7.1.9 beta; Dell Inspiron 530; Windows 7 Ultimate 32-bit (UAC turned off); 2TB Internal SATA (TV Recordings)
Storage: Synology DiskStation DS411+, RAID 5, 5x 2TB SATA for (DVDs/Music/Other Videos)
Tuners: Ceton InfiniTV w/ Verizon FIOS cablecard (using babgvant's SageDCT plugin)
Clients: 1x STP-HD300; 1x Acer Aspire Revo 3610 (Atom/Ion) w/ SageTV client (Win 7, EVR, FSE on)

Last edited by LehighBri; 03-30-2009 at 04:46 PM.
Reply With Quote
  #464  
Old 03-30-2009, 06:03 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Supid question, but is there a way to set the priority of provider usage? Eg can I set it to use DVD Profiler for everything, but to suppliment that with other sources (like fanart, etc)?

-er, that's probably what this line is...
Code:
/metadata/defaultProviderId

Last edited by stanger89; 03-30-2009 at 06:06 PM.
Reply With Quote
  #465  
Old 03-30-2009, 06:38 PM
onlydarksets onlydarksets is offline
Sage Advanced User
 
Join Date: Dec 2003
Posts: 128
Quote:
Originally Posted by LehighBri View Post
I recently downloaded this and installed and love it so far. One potential bug I noticed is that when I did my full reindex, it found my DVD fanart just fine, but it stored the picture files in the DVD folder rather than in my central fanart folder. Is that by design? Is there a workaround to store it in the FanArt\Movies folder similar to how TV is stored in FanArt\TV?

EDIT: Some more detail. I am using the default install, no metadata.properties file, default STV. Imported the BMT.stvi and central fanart folder set to T:\FanArt. Forcing reindex did not pull in the TV images to T:\FanArt\TV. The only way to get images to T:\FanArt\TV is to do the manual scan on a recording.
Ditto. I also tried this, but got an error:
java -jar MetadataTool.jar --fanartFolder "g:\media\Fanart" g:\Media\Movies

Quote:
Batch MetaData Tools (2.0)
Failed while applying arg: fanartFolder (true) to method: setForceThumbnailOverwrite
Batch MetaData Tools (2.0)
Import/Update Movie MetaData from a MetaData Provider.
ERROR: argument type mismatch
java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jdna.cmdline.CommandLine.applyToAnnotated(CommandLine.java:278)
at org.jdna.metadataupdater.MetadataUpdater.main(MetadataUpdater.java:89)
Reply With Quote
  #466  
Old 03-30-2009, 07:19 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by stanger89 View Post
Supid question, but is there a way to set the priority of provider usage? Eg can I set it to use DVD Profiler for everything, but to suppliment that with other sources (like fanart, etc)?

-er, that's probably what this line is...
Code:
/metadata/defaultProviderId
Yeah, /metadata/defaultProviderId, is actaully the complete list of providers that you want to use, and the order they they should be used.

ie, if you have,
/metadata/defaultProviderId=dvdprofiler,imdb.xml,tvdb.xml

Then dvdprofiler will be used first, and if there isn't a good match, then it will try the next provider, etc, until it finds a good match.

If you are are looking to do something like combine the results from multiple providers, then that's a "composite provider" and the configuration allows for that as well, although it's a little more complicated to setup. A composite provider allows you to search using one provider and suplement the details using both the search provider and a separate detail provider. ie, you could setup a composite provider that will use the imdb provider to search and then supplement the details using dvdprofiler. The "themoviedb.org-2" provider in the configuration is an example of a composite provider that uses imdb to search and supplements the details using themoviedb.

Just so you know, can now set the provider execution order using the stvi provided for the default stv and sagemc.
Reply With Quote
  #467  
Old 03-30-2009, 07:20 PM
babgvant babgvant is offline
Sage Icon
 
Join Date: Jul 2008
Location: London
Posts: 1,834
Quote:
Originally Posted by stanger89 View Post
Supid question, but is there a way to set the priority of provider usage? Eg can I set it to use DVD Profiler for everything, but to suppliment that with other sources (like fanart, etc)?

-er, that's probably what this line is...
Code:
/metadata/defaultProviderId
if memory serves, providers are used in the order they are entered in the prop file.

if a provider can't fulfill a query type (movies v. tv for e.g.) the next one is used, I don't remember what happens if a provider can handle a type but doesn't return results.
__________________
babgvant.com | @babgvant | Missing Remote
Reply With Quote
  #468  
Old 03-30-2009, 07:29 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by LehighBri View Post
I recently downloaded this and installed and love it so far. One potential bug I noticed is that when I did my full reindex, it found my DVD fanart just fine, but it stored the picture files in the DVD folder rather than in my central fanart folder. Is that by design? Is there a workaround to store it in the FanArt\Movies folder similar to how TV is stored in FanArt\TV?

EDIT: Some more detail. I am using the default install, no metadata.properties file, default STV. Imported the BMT.stvi and central fanart folder set to T:\FanArt. Forcing reindex did not pull in the TV images to T:\FanArt\TV. The only way to get images to T:\FanArt\TV is to do the manual scan on a recording.
A couple of questions....
When you say that you did a full reindex, is tha via the commandline, or using the plugin?

If it was from the commandline, then may have introduced some confusion about adding the stv screen to set the central fanart directory. That screen set the phoenix/sagemc fanart property for the central fanart folder, but doesn not set the central fanart folder property in the metadata properties. (i'll add a bug) If you run it from the commandline, will need to pass --fanartFolder=YOUR_FOLDER. When the BMT provider runs inside sage, it can pick up the fanart folder location by checking to see if the phoenix/sagemc fanart folder is set, and use it, but in the commandline, it relies solely on it's own metadata.properties which probably doesn have the folder location set.

The behaviour that you talking about, ie dropping the images in the dvd folder dir, is what happens when central fanart is enabled, but a central fanart folder dir is not set.
Reply With Quote
  #469  
Old 03-30-2009, 07:33 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by onlydarksets View Post
Ditto. I also tried this, but got an error:
java -jar MetadataTool.jar --fanartFolder "g:\media\Fanart" g:\Media\Movies
This is a bug.... bascially that property was removed from the configuration set, and it's complaining because it's trying to apply that property value to bmt but there's no place for it... (the simple answer).

You can either remove your metadata.properties, or edit it and remove the line that contains that string something like /xxxxx/setForceThumbnailOverwrite
Reply With Quote
  #470  
Old 03-30-2009, 07:38 PM
LehighBri LehighBri is offline
Sage Expert
 
Join Date: Sep 2006
Posts: 694
Quote:
Originally Posted by stuckless View Post
A couple of questions....
When you say that you did a full reindex, is tha via the commandline, or using the plugin?

If it was from the commandline, then may have introduced some confusion about adding the stv screen to set the central fanart directory. That screen set the phoenix/sagemc fanart property for the central fanart folder, but doesn not set the central fanart folder property in the metadata properties. (i'll add a bug) If you run it from the commandline, will need to pass --fanartFolder=YOUR_FOLDER. When the BMT provider runs inside sage, it can pick up the fanart folder location by checking to see if the phoenix/sagemc fanart folder is set, and use it, but in the commandline, it relies solely on it's own metadata.properties which probably doesn have the folder location set.

The behaviour that you talking about, ie dropping the images in the dvd folder dir, is what happens when central fanart is enabled, but a central fanart folder dir is not set.
I didn't do from commandline. Per the first post in this thread, I updated my sage.properties force_full_content_reindex=true . Was I not supposed to do that? What is the best way to redo this and reindex and have it work as I'm expecting?
__________________
Server: Sage 7.1.9 beta; Dell Inspiron 530; Windows 7 Ultimate 32-bit (UAC turned off); 2TB Internal SATA (TV Recordings)
Storage: Synology DiskStation DS411+, RAID 5, 5x 2TB SATA for (DVDs/Music/Other Videos)
Tuners: Ceton InfiniTV w/ Verizon FIOS cablecard (using babgvant's SageDCT plugin)
Clients: 1x STP-HD300; 1x Acer Aspire Revo 3610 (Atom/Ion) w/ SageTV client (Win 7, EVR, FSE on)
Reply With Quote
  #471  
Old 03-30-2009, 07:46 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by LehighBri View Post
I didn't do from commandline. Per the first post in this thread, I updated my sage.properties force_full_content_reindex=true . Was I not supposed to do that? What is the best way to redo this and reindex and have it work as I'm expecting?
Then it is a bug... i'll look further into it... because whether you do a manual scan or reindex, it should simply put the fanart in the location that you specified. Now it will drop the poster image in the dvd folder, for backward compatibility with the default stv (I could add in an option to NOT do this), but it should still create entries in the fanart folder location for Backgrounds/ Posters/ etc for each movie.
Reply With Quote
  #472  
Old 03-30-2009, 07:53 PM
LehighBri LehighBri is offline
Sage Expert
 
Join Date: Sep 2006
Posts: 694
Quote:
Originally Posted by stuckless View Post
Then it is a bug... i'll look further into it... because whether you do a manual scan or reindex, it should simply put the fanart in the location that you specified. Now it will drop the poster image in the dvd folder, for backward compatibility with the default stv (I could add in an option to NOT do this), but it should still create entries in the fanart folder location for Backgrounds/ Posters/ etc for each movie.
Thanks for looking in to this. To summarize, the issues I experience after setting the force reindex flag in my sage.properties are:
1. DVD move images are saved in the DVD source directly and NOT in the central Fanart folder
2. TV images are not saved period. The only way I can get TV images to save is to use the manual option by hitting Menu on each recording or media file.
__________________
Server: Sage 7.1.9 beta; Dell Inspiron 530; Windows 7 Ultimate 32-bit (UAC turned off); 2TB Internal SATA (TV Recordings)
Storage: Synology DiskStation DS411+, RAID 5, 5x 2TB SATA for (DVDs/Music/Other Videos)
Tuners: Ceton InfiniTV w/ Verizon FIOS cablecard (using babgvant's SageDCT plugin)
Clients: 1x STP-HD300; 1x Acer Aspire Revo 3610 (Atom/Ion) w/ SageTV client (Win 7, EVR, FSE on)
Reply With Quote
  #473  
Old 03-30-2009, 07:56 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
This is something that I should have stressed a little more in the release notes, specifically since it will have huge impact on whether or not TV fanart gets picked correctly after a scan.

As of the last beta build of sage, it has support for storing extra metadata fields. The scapers have been updated to pass those properties to sage, but Sage has to be configured to recieve those properties. You can do that in one of 2 ways. The first, is by using the stv plugin and enabling the metadata plugin. The second way is to manually edit your sage.properties and adding this line...

Code:
custom_metadata_properties=MediaProviderDataID;MediaTitle;MediaType;OriginalAirDate;EpisodeTitle;EpisodeNumber;SeasonNumber;DiscNumber;UserRating
Either way, you should check to see if you have that property in your sage.properties. If not, then add it, because it will simplify the TV fanart.

If a tv show is imported into sage with those properties set, then MediaTitle will be used as the fanart folder dir (ie, Bones, House, etc), no matter what the actual title is. Also the media type would have been set to TV and if available, there may have been season specific fanart. Without those properties, then the central fanart system ONLY relies on the display title, which may be something like, "Bones S01 E02 - Some Description". I'm also working on a "work around" for this as well, but those extra metadata fieds are very important when you importing standard videos as "TV shows".
Reply With Quote
  #474  
Old 03-30-2009, 07:59 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by LehighBri View Post
Thanks for looking in to this. To summarize, the issues I experience after setting the force reindex flag in my sage.properties are:
1. DVD move images are saved in the DVD source directly and NOT in the central Fanart folder
2. TV images are not saved period. The only way I can get TV images to save is to use the manual option by hitting Menu on each recording or media file.
If you could send me (post it here or PM me) your sagetv_0.txt log file, then maybe I could see something specific in there as to why this is failing.
Reply With Quote
  #475  
Old 03-30-2009, 08:08 PM
LehighBri LehighBri is offline
Sage Expert
 
Join Date: Sep 2006
Posts: 694
Quote:
Originally Posted by stuckless View Post
The first, is by using the stv plugin and enabling the metadata plugin. The second way is to manually edit your sage.properties and adding this line...

Code:
custom_metadata_properties=MediaProviderDataID;MediaTitle;MediaType;OriginalAirDate;EpisodeTitle;EpisodeNumber;SeasonNumber;DiscNumber;UserRating
I am using the stv plugin, and when I checked my sage.properties, that property is indeed there. I recently deleted all my fanart subfolders, stopped sage, updated the force reindex flag to true, and restarted sage and no TV shows were populated in the Fanart\TV central folder.

See attached for the log.
Attached Files
File Type: zip sagetv_0.zip (469.4 KB, 180 views)
__________________
Server: Sage 7.1.9 beta; Dell Inspiron 530; Windows 7 Ultimate 32-bit (UAC turned off); 2TB Internal SATA (TV Recordings)
Storage: Synology DiskStation DS411+, RAID 5, 5x 2TB SATA for (DVDs/Music/Other Videos)
Tuners: Ceton InfiniTV w/ Verizon FIOS cablecard (using babgvant's SageDCT plugin)
Clients: 1x STP-HD300; 1x Acer Aspire Revo 3610 (Atom/Ion) w/ SageTV client (Win 7, EVR, FSE on)
Reply With Quote
  #476  
Old 03-30-2009, 09:01 PM
onlydarksets onlydarksets is offline
Sage Advanced User
 
Join Date: Dec 2003
Posts: 128
Quote:
Originally Posted by stuckless View Post
This is a bug.... bascially that property was removed from the configuration set, and it's complaining because it's trying to apply that property value to bmt but there's no place for it... (the simple answer).

You can either remove your metadata.properties, or edit it and remove the line that contains that string something like /xxxxx/setForceThumbnailOverwrite
I don't have anything in my metadata.properties file. It only happens when I use the --fanartFolder parameter. If I don't use that parameter, it runs fine, but it dumps the fanart in the same folder as the movie, which, of course, doesn't work with the Phoenix APIs.
Reply With Quote
  #477  
Old 03-30-2009, 09:05 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by LehighBri View Post
I am using the stv plugin, and when I checked my sage.properties, that property is indeed there. I recently deleted all my fanart subfolders, stopped sage, updated the force reindex flag to true, and restarted sage and no TV shows were populated in the Fanart\TV central folder.

See attached for the log.
Thank for the log, it helped alot... From it I could determine a few things.
1. I need to add 1080p to the list of words to ignore when doing title searches... many of your movies were skipped because it contained 1080p in the filename.
2. It think for the dvds/movies where it is not downloading fanart, it's because a properties file exists for those movies, and they are basically being skipped. I'm changing that in the next build.
3. When you mentioned tv shows, were you referring to existinf recorded shows or other import tv shows. BMT plugin does not fetch metadata for recorded shows. The manual way will, but not the plugin.

I will try to have a new build out in the next few days, I'm still doing some testing. For now, you can see if you have any properties lying around for the dvds... (or other vidoes) and remove the properties and then do a reindex.
Reply With Quote
  #478  
Old 03-30-2009, 09:09 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by onlydarksets View Post
I don't have anything in my metadata.properties file. It only happens when I use the --fanartFolder parameter. If I don't use that parameter, it runs fine, but it dumps the fanart in the same folder as the movie, which, of course, doesn't work with the Phoenix APIs.
Sorry I should learn to read It's getting late... your problem is that the property needs to be set using an =
Code:
java -jar MetadataTool.jar --fanartFolder="g:\media\Fanart" g:\Media\Movies
Reply With Quote
  #479  
Old 03-30-2009, 09:27 PM
babgvant babgvant is offline
Sage Icon
 
Join Date: Jul 2008
Location: London
Posts: 1,834
Quote:
Originally Posted by onlydarksets View Post
I don't have anything in my metadata.properties file. It only happens when I use the --fanartFolder parameter. If I don't use that parameter, it runs fine, but it dumps the fanart in the same folder as the movie, which, of course, doesn't work with the Phoenix APIs.
if you pipe the complete properties list into a text file (open it in wordpad to get w32 line breaks) it's much easier to manage.

Code:
java -jar metadata.jar --showproperties >> metadata.properties
then you can edit the values you want to change like ignored keywords and additional file types (m2ts for e.g.)

the new rev is really great, I was going to migrate my current fanart but after seeing the results from a few test cases I ended up deleting it letting BMT work it's magic. thanks sean!
__________________
babgvant.com | @babgvant | Missing Remote
Reply With Quote
  #480  
Old 03-30-2009, 09:29 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
Quote:
Originally Posted by stuckless View Post
3. When you mentioned tv shows, were you referring to existinf recorded shows or other import tv shows. BMT plugin does not fetch metadata for recorded shows. The manual way will, but not the plugin.
Will BMT plugin ever support recorded shows (at least the fanart) in an automatic way? I can get it to download the fanart with the manual process, but that's kind of a pain.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 16 (0 members and 16 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
STV Import: Read & Write Metadata files for Default STV 5/6 (v2.2.9 18/Feb./2010) JREkiwi SageTV Customizations 251 10-09-2019 11:11 AM
Automated VideoRedo (DOS batch files) grauchy SageTV Customizations 3 09-08-2011 10:01 PM
Simple utility to control multiple USB or Serial HD DirecTV STBs jchiso Hardware Support 15 02-19-2009 06:27 PM
DVB-S setup with Digiguide EPG Grabber & XMLTV importer MCE-Refugee SageTV United Kingdom 27 09-08-2008 09:10 AM
Keeping custom metadata for imports via AddShow() Opus4 SageTV Studio 9 02-20-2008 06:35 PM


All times are GMT -6. The time now is 02:15 PM.


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