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
  #381  
Old 02-25-2009, 09:58 AM
S_M_E S_M_E is offline
Sage Fanatic
 
Join Date: Dec 2007
Posts: 908
I hadn't noticed that you added a gui and I don't see it in the wiki either but I checked it out. It's a good idea but as you know it still needs work and better documentation.

Passing commandline arguments while starting the gui seems to pick them up but they revert to default when the scan is started, therefore you can't change the order of the providers. Also, not all commandline options are available in the gui yet.

Good start though...
Reply With Quote
  #382  
Old 02-25-2009, 10:05 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I didn't include it in the wiki, or even mention it before, because it's more of a POC. I wanted to give it a try, but I'll probably end up removing it in the future, if someone else dosn't volunteer to take it over. (I was curious if anyone was going to notice )

It's enough effort on my part to maintain the command line tool
Reply With Quote
  #383  
Old 02-25-2009, 10:09 AM
S_M_E S_M_E is offline
Sage Fanatic
 
Join Date: Dec 2007
Posts: 908
I'd be happy to help but I gave up on programming back in 1982 so all I can offer is input.

The CLI works well too and we appreciate it...
Reply With Quote
  #384  
Old 03-04-2009, 06:40 PM
onlydarksets onlydarksets is offline
Sage Advanced User
 
Join Date: Dec 2003
Posts: 128
I am running into some incorrectly identified movies. I posted about it here, but it seems more relevant in this thread.

"American Pie" comes up as "American Pie presents Band Camp"
"Friday" comes up as "Friday the 13th"
"Casino" comes up as "Casino Royale"

My metadata.properties looks like this:
Quote:
/media/videoExtensionsRegex=avi|mpg|divx|mkv|wmv|mov|xvid|mp4|m2ts|m4v
/metadata/defaultProviderId=themoviedb.org-2
Strangely, in all cases the _providerDataUrl points to the correct IMDB page, but the data is all incorrect.

I believe Andy is looking into it, but I wanted to get it in the right thread.
Reply With Quote
  #385  
Old 03-04-2009, 06:54 PM
S_M_E S_M_E is offline
Sage Fanatic
 
Join Date: Dec 2007
Posts: 908
That's why I run it with the prompt option so I don't get false hits. It's a PITA to do it if you have a lot of media but if you just delete the .properties file with the bad info and run it with the prompt option you can specify which one is right for the second pass.
Reply With Quote
  #386  
Old 03-04-2009, 06:59 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
onlydarksets, thanks for posting it here as well... I did see your post in the the other thread, but I didn't realize it was related to BMT.... And yeah... I think that Andy (babgvant) has decided to look into this. (thanks Andy )
Reply With Quote
  #387  
Old 03-04-2009, 07:05 PM
onlydarksets onlydarksets is offline
Sage Advanced User
 
Join Date: Dec 2003
Posts: 128
Quote:
Originally Posted by S_M_E View Post
That's why I run it with the prompt option so I don't get false hits. It's a PITA to do it if you have a lot of media but if you just delete the .properties file with the bad info and run it with the prompt option you can specify which one is right for the second pass.
Thanks, I haven't tried that method yet. However, the weird thing is that the IMDB lookup is correct, it's just pulling the wrong data. I assume that it gets the proper movie name from IMDB, which it then uses to get the artwork. Because it is somehow hitting the wrong URL, the movie name is wrong, which makes the subsequent lookups wrong, as well. I'm speculating here, but I don't know how else to explain the _providerDataUrl.

Quote:
Originally Posted by stuckless View Post
onlydarksets, thanks for posting it here as well... I did see your post in the the other thread, but I didn't realize it was related to BMT.... And yeah... I think that Andy (babgvant) has decided to look into this. (thanks Andy )
Great tool, stuckless - thanks for putting it together!
Reply With Quote
  #388  
Old 03-04-2009, 07:14 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Thanks, I haven't tried that method yet. However, the weird thing is that the IMDB lookup is correct, it's just pulling the wrong data. I assume that it gets the proper movie name from IMDB, which it then uses to get the artwork. Because it is somehow hitting the wrong URL, the movie name is wrong, which makes the subsequent lookups wrong, as well. I'm speculating here, but I don't know how else to explain the _providerDataUrl.
I think the problem here is the themovedb-2 provider and how composite providers work. In a nutshell, composite providers use 2 different providers, one for searching and one for details... the only thing linking them is the movie title. So even though the search hit is correct (using the imdb provider), the search details (ie, metadata is wrong) and it results in incorrect data... (I should really add a better logic to the composite provider).

In the meantime, you can try the imdb.xml provider. It also supports backdrops, (from themoviedb.org) but it does a better job as resolving the correct title.
Reply With Quote
  #389  
Old 03-04-2009, 08:59 PM
onlydarksets onlydarksets is offline
Sage Advanced User
 
Join Date: Dec 2003
Posts: 128
I tried imdb.xml, but it doesn't work for me. For most titles, it gets very uncertain and prompts me to resolve the movie name, and then it does nothing when I select one of the numbers (e.g., "00"). There are only a few movies that have failed, so I'm manually processing those with mediaScraper.
Reply With Quote
  #390  
Old 03-04-2009, 09:11 PM
S_M_E S_M_E is offline
Sage Fanatic
 
Join Date: Dec 2007
Posts: 908
Here's the command I use most:
Code:
java -jar MetadataTool.jar --gui --recurse --displaySize=20 --prompt=true --auto=false --provider=nielm_imdb,themoviedb.org,imdb,imdb.xml,tvdb.xml --setProperty=/imdb/forcedIMDBImageSize:1920 \\Abit\videos\Movies\
but I want it to prompt so YMMV...
Reply With Quote
  #391  
Old 03-04-2009, 09:38 PM
onlydarksets onlydarksets is offline
Sage Advanced User
 
Join Date: Dec 2003
Posts: 128
Per the wiki, though, the prompt option is already enabled by default, but it only prompts if it can't make a match. That's not the issue I have - it thinks it has a match, it's just the wrong one. I've confirmed it also happens with the "themoviedb.org" provider, so it does seem to be an issue with that database, as opposed to IMDB.
Reply With Quote
  #392  
Old 03-04-2009, 10:06 PM
S_M_E S_M_E is offline
Sage Fanatic
 
Join Date: Dec 2007
Posts: 908
Maybe it's the --auto=false that does it then. Either way, that's the command I use and becasue it prompts every time, I don't get false hits. I do put the imdb providers first in the order though. *shrug*
Reply With Quote
  #393  
Old 03-05-2009, 07:29 AM
onlydarksets onlydarksets is offline
Sage Advanced User
 
Join Date: Dec 2003
Posts: 128
Quote:
Originally Posted by S_M_E View Post
Maybe it's the --auto=false that does it then. Either way, that's the command I use and becasue it prompts every time, I don't get false hits. I do put the imdb providers first in the order though. *shrug*
Yep, that's the one. Thanks!
Reply With Quote
  #394  
Old 03-05-2009, 08:01 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
You may want to run a complete scan, then later you can "fix" the problem files, by running in "manual" as SME noted. (I normally run it as plugin, then then "manually" fix the problem files later)

ie,
Code:
# java -jar MetadataUpater.jar --update --force --forceThumbnail --forceBackdrop --auto=false --prompt YourIncorrectFile.avi
But that requires some effort to keep track of the incorrect titles.

Personally, I think that the tool needs a UI I've been learning the STV language lately, so who knows, maybe I'll try to put something together.
Reply With Quote
  #395  
Old 03-05-2009, 08:11 AM
onlydarksets onlydarksets is offline
Sage Advanced User
 
Join Date: Dec 2003
Posts: 128
That's exactly what I did. I just scanned the thumbnails of the covers for images that didn't match, then I moved the folders/files to a new directory and ran the "forced" version on the temp directory. Then I moved everything back.

Thanks for the feedback!
Reply With Quote
  #396  
Old 03-05-2009, 08:25 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
New Release 1.23 - The babgvant Release 2 :)

Babgvant has been busy fixing bugs and adding enhancements....
  • All search providers now use the same scoring algorithm and Exact Match, Popular Match, etc have been removed as a means of determining valid search results
  • Support for Multi DVD TV dics (ie, Show - S01D01)

What this basically means is that instead of using abstract terms like "exact match", "popular match", etc, the tool now uses a "scoring" system that ranks the search score from 0-1 as a float value (mush like search engines do). So, for example a search result of 0.30 is not a poor match, but a score of 0.90 is pretty good, and 1.0 is an exact match.

The tool, by default will use a "default" score of 0.90 as being a score that it will accept if it cannot find an exact match. You can change this value by changing the /metadata/goodScoreThreshold property.
Code:
# Description: Score which must be exceeded to consider a result a good match
/metadata/goodScoreThreshold=0.9
The higher the value the more likely you will avoid false hits, but you may be prompted for more searches. You can accept the default, or set your own.

The second enhancement involves Multi DVD TV titles. ie, the tool will fetch metata for Disc sets, if the DVD TV set contains S##D## in the filename, where S## is the season and D## is the Disc #.
eg,
Quote:
# season 1 - 3 discs
/Dexter - S01D01/VIDEO_TS
/Dexter - S01D02/VIDEO_TS
/Dexter - S01D03/VIDEO_TS
# season 2 - 3 discs
/Dexter - S02D01/VIDEO_TS
/Dexter - S02D02/VIDEO_TS
/Dexter - S02D03/VIDEO_TS
Obviously it won't download episode information, but it will download the series info, thumbnail and backdrop.

You can thank babgvant for these enhancements.
Reply With Quote
  #397  
Old 03-06-2009, 10:22 AM
onlydarksets onlydarksets is offline
Sage Advanced User
 
Join Date: Dec 2003
Posts: 128
Sounds like a couple of great improvements! I'll give it a go this weekend.

Thanks!
Reply With Quote
  #398  
Old 03-10-2009, 10:38 AM
lsochia lsochia is offline
Sage User
 
Join Date: Feb 2008
Location: Portland, OR
Posts: 30
Need help setting up...

This tool seems to be working fine getting metadata, however, it does not retrieve any cover art can someone point me in the right direction. I can download tv show art manually, but I was hoping this tool could do this automatically for me, am I mistaken???
Reply With Quote
  #399  
Old 03-10-2009, 11:06 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
which provider metadata providers are you using? If you are not passing a --provder argument, then it will only use the default imdb provider, which doesn't have coverart.

Some other providers that you can try include... --provider=themoviedb.org-2,imdb.xml,imdb,tvdb.xml

This will first look at the moviedb.org, then imdb.xml (which will fetch coverart). If you have tvshows in the format "Title s##e##" then the tvdb.xml will be used to fetch any metdata for those...

In the next release, I may enable all providers by default, with the option of turning them off, or reordering them, that would make it easier for most users, who just want it work with everything out the box...
Reply With Quote
  #400  
Old 03-10-2009, 11:32 AM
lsochia lsochia is offline
Sage User
 
Join Date: Feb 2008
Location: Portland, OR
Posts: 30
I am using the plugin for sagetv, should I use the command line?

Quote:
Originally Posted by stuckless View Post
which provider metadata providers are you using? If you are not passing a --provder argument, then it will only use the default imdb provider, which doesn't have coverart.

Some other providers that you can try include... --provider=themoviedb.org-2,imdb.xml,imdb,tvdb.xml

This will first look at the moviedb.org, then imdb.xml (which will fetch coverart). If you have tvshows in the format "Title s##e##" then the tvdb.xml will be used to fetch any metdata for those...

In the next release, I may enable all providers by default, with the option of turning them off, or reordering them, that would make it easier for most users, who just want it work with everything out the box...
Thx, I will try that.

I am using the reindex command in sage.properties file ( on restart ) and it seems to refresh the .properties files...Where do I specify the providers? I am not running this by the command line....
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 2 (0 members and 2 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 09:58 AM.


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