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
  #181  
Old 12-06-2008, 07:21 PM
mrdrbdt mrdrbdt is offline
Sage User
 
Join Date: Jul 2007
Posts: 59
Awesome! It works perfectly now!

Already have 500 movies done. This beats the hell out of doing them one by one in DVD profiler.

Now, if only sage would support stacking.... I'm in the middle of re-joining all my multipart movies. I used to play them back off CD on my liteon dvd player (first Divx player...yeah.. you remember that), but know that I've gone with an HTPC it's been less important.
Reply With Quote
  #182  
Old 12-06-2008, 09:40 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Sean, any thoughts on adding http://www.themoviedb.org/ as a source for fanart and posters?

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #183  
Old 12-06-2008, 10:13 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Funny, I was looking at that site today because of Brent's earlier post. But I didn't notice at that time, that they have an API. I'll take a closer look. Thanks.
Reply With Quote
  #184  
Old 12-07-2008, 09:36 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
I don't know, I clicked on the word Api on the landing page.. http://api.themoviedb.org/2.0/docs/



B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #185  
Old 12-07-2008, 09:52 AM
Bacon2002 Bacon2002 is offline
Sage Aficionado
 
Join Date: Jan 2008
Location: London
Posts: 267
Hi,

Is anyone using Vista 64 and this application?

I have not been able to get Vista 64 to run a Java instruction from a commandline.

David
Reply With Quote
  #186  
Old 12-07-2008, 11:15 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
unfortunatly, I don't personally have a 64bit Vista to test with, but I can't think of why it would make a difference? If you post your errors, maybe myself or someone else could better help.

Cans you run
Code:
java -version
from the command line? If not, then java is probably not in your classpath.

If you can, them make sure you are running at least java 5 (1.5)

When you run the application, you should be in the same directory as the .jar that you are trying to run.

What error do you get, when you run
Code:
java -jar MetadataTool.jar
Reply With Quote
  #187  
Old 12-07-2008, 01:07 PM
VCAT VCAT is offline
Sage User
 
Join Date: Aug 2008
Posts: 7
I Think there's an easy way for stuckless to integrate higher quality covers. Currently the images retrieved from imdb are smaller resolution thumbnails of a higher res source that is easily retrievable by modifying the image url. for example for the movie: 1492 Conquest of Paradise, the image url is:

http://ia.media-imdb.com/images/M/MV...X93_SY140_.jpg

the end "_sx93_sy140_" of the filename is the resolution, in this case width = 93 and height = 140. Simply substitute height and width for an arbitrarily large number and the largest photo version will be sent (the original source photo). Lets use 10000 as the arbitrarily large number:

http://ia.media-imdb.com/images/M/MV...0_SY10000_.jpg

and you will get the original cover pic instead of the thumbnail.

This might be a quick work around

P.S. the larger image is blocked by certain referrers it seems, but if you copy and paste the url into a clean browser window's address bar it seems to work. I wonder if this would be blocked by the metadataTool crawler?
Reply With Quote
  #188  
Old 12-07-2008, 01:14 PM
Bacon2002 Bacon2002 is offline
Sage Aficionado
 
Join Date: Jan 2008
Location: London
Posts: 267
Hi,

If I open a Dos box and enter:-

java -version

I get the following message:-

java version "1.6.0_11"
java(TM) SE Runtime Environment (build 1.6.0_11-b03)
java HotSpot(TM) Client VM (build 11.0b16, mixed mode)

When (whilst in C:\Program Files (x86)\SageTV\SageTV\JARs\ folder) I enter:-

java -jar MetadataTool.jar

I get the following message:-

Exception in thread "main" java.lang.NullPointerException
at MetadataTool.main(MetadataTool.java:75)

I hope this helps and thanks for the help.

David
Reply With Quote
  #189  
Old 12-07-2008, 07:20 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
in the same directory as the MetadataTool.jar, there should be a .log file. Send that to me as well... "NullPointerException" usually indicates a programmer error (ie, I missed something )

one more thing.... this is a stand alone tool... you don't need to (nor should you) extract this in the JARs folder. You should create a separate directory, somewhere separate from Sage, and extract and run it from there.
Reply With Quote
  #190  
Old 12-11-2008, 02:51 PM
mp328 mp328 is offline
Sage Advanced User
 
Join Date: Dec 2006
Posts: 122
Just wanted to say tnx for this great tool

i was just looking for something like this and people pointed me to this thread. i got all of my files done in about 30 min

just wondering all the files in the cache folder, are they required there or can i deleted them once i was done with the imports

tnx again on the great work
Reply With Quote
  #191  
Old 12-11-2008, 07:17 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Just wanted to say tnx for this great tool...
Thanks! Glad it worked out for you.

Quote:
just wondering all the files in the cache folder, are they required there or can i deleted them once i was done with the imports
Actually the cache folder is not required, once the application is done. The cache is valid for 24hrs, so if you re-run the tool on a given file, within that period, then it will use the cache. Unfortunately the tools doesn't ever clean the cache, so it's probably a good idea to clean it out from time to time.
Reply With Quote
  #192  
Old 12-12-2008, 04:29 AM
ke6guj ke6guj is offline
Sage Icon
 
Join Date: Jan 2005
Posts: 2,355
stuckless, I have been trying to troubleshoot the FanArt issues with movies not displaying properly and I did find an issue with .properties files that I created with the batch importer. It appears that in every .properties file, there is an extra space appended to the end of the Title Property. So, when that happens, the Title that Sage saves into the db has that space in it, and the filename of the fanArt does not match.
Attached Files
File Type: txt Ace Ventura When Nature Calls.avi.properties.txt (2.5 KB, 218 views)
__________________
- Jack
__________________________________________
Server: AMD Phenom 9750, 2GB RAM, 2 Hauppauge PVR500, 1 Firewired DCT6200, 1 HDHomerun tuning 2 QAM channels, Vizio 37" HDTV LCD, 1 USB-UIRT

Clients: 1 MediaMVP, 1 Placeshifter Client, & 1 SageTV Client.
Reply With Quote
  #193  
Old 12-12-2008, 06:37 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Thanks jack, i'll fix that in the next release.
Reply With Quote
  #194  
Old 12-12-2008, 06:59 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
New Release 1.10

There's a new release. I've fixed the whitespace at the end of the title and I've quickly added a metadata provider for themoviedb.com.

This new provider doesn't need to do any screen scraping, since I've registered for an api_key for this project. It also has better cover art than imdb (higher res).

I consider this plugin to be beta, so try it out, and let me know how it goes. After bcjenkins noted that themoviedb.com had an api, i decided to give it a quick try today. It was an easy integration. I ran it against about 40 movies, and I had fairly good results. I would say that the IMDB provider has a better hit rate, but this seemed pretty good.

If you want to use this provider, then use the following command line
Code:
java -jar MetadataTool.jar --provider=themoviedb.com
if you want to convert a bunch of movies from the imdb provider to this one...
Code:
java -jar MetadataTool.jar --provider=themoviedb.com --force --forceThumbnail MOVIE_DIR
Reply With Quote
  #195  
Old 12-12-2008, 07:08 PM
S_M_E S_M_E is offline
Sage Fanatic
 
Join Date: Dec 2007
Posts: 908
What's the difference, visually, using either IMDB or themoviedb? Can you post screenshots of the same movie using both sources?
Reply With Quote
  #196  
Old 12-12-2008, 07:42 PM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
Quote:
Originally Posted by stuckless View Post
There's a new release. I've fixed the whitespace at the end of the title and I've quickly added a metadata provider for themoviedb.com.

This new provider doesn't need to do any screen scraping, since I've registered for an api_key for this project. It also has better cover art than imdb (higher res).

I consider this plugin to be beta, so try it out, and let me know how it goes. After bcjenkins noted that themoviedb.com had an api, i decided to give it a quick try today. It was an easy integration. I ran it against about 40 movies, and I had fairly good results. I would say that the IMDB provider has a better hit rate, but this seemed pretty good.

If you want to use this provider, then use the following command line
Code:
java -jar MetadataTool.jar --provider=themoviedb.com
if you want to convert a bunch of movies from the imdb provider to this one...
Code:
java -jar MetadataTool.jar --provider=themoviedb.com --force --forceThumbnail MOVIE_DIR
So maybe this could also be used to download fanart since you're using the api? It should be easy to drop the background.jpg in each movie folder. Maybe a little more difficult to drop it in the central fanart folder? Just thinking outloud here.

Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
  #197  
Old 12-12-2008, 09:43 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
New Release 1.11

Quote:
Originally Posted by VCAT View Post
I Think there's an easy way for stuckless to integrate higher quality covers. Currently the images retrieved from imdb are smaller resolution thumbnails of a higher res source that is easily retrievable by modifying the image url. for example...
I actually didn't see this posting until about an hour ago So I decided to give it a try, and it works.

Sorry for the back to back releases, but I also had to release a new build because IMDB search results broke for me tonight. The change was small, but when you are screen scraping... even small changes will break stuff.

As for the higher res IMDB images. You can either set the following property in your metadata.properties or pass it on the command line.
Code:
/imdb/forcedIMDBImageSize=SOME_LARGE_NUMBER
If you pass it on the command line, it would look like this...
Code:
# java -jar MetadataTool.jar --setProperty=/imdb/forcedIMDBImageSize:1920 MOVIE_FILE
I have no idea what the long term effect of this property will have, but for now, it does seem to work. I ran it against 40+ movies, and it did fetch better cover art, but still not nearly as good as themoviedb.com.
Reply With Quote
  #198  
Old 12-12-2008, 09:47 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by S_M_E View Post
What's the difference, visually, using either IMDB or themoviedb? Can you post screenshots of the same movie using both sources?
In my oppinion the advantage of themoviedb.com is not really the better images, it's the fact that the integration to their site is using a documented API, instead of the screen scraping, as is done with imdb.

Currently, the 2 most stable providers are DVDProfiler (local) and now themoviedb.com.

I won't post a screen comparison, mainly because it's too much work for me

If you are happy with the quality of your images, and the stability of the imdb provider, then I would stick with it.
Reply With Quote
  #199  
Old 12-12-2008, 09:51 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by gplasky View Post
So maybe this could also be used to download fanart since you're using the api? It should be easy to drop the background.jpg in each movie folder. Maybe a little more difficult to drop it in the central fanart folder? Just thinking outloud here.

Gerry
Gerry, I agree it wouldn't be too much effort, and I'm currently looking into providing additional cover art functionality and providers, so mabe at some point i'll look into backgrounds.

It sounds, from your comment, that backgrounds only work for movies that are in a folder. It's too bad it couldn't also work for movies that are not in individual folders. I typically don't create a new folder each movie. (but maybe I'm just misunderstanding how backgrounds work)
Reply With Quote
  #200  
Old 12-13-2008, 01:20 AM
S_M_E S_M_E is offline
Sage Fanatic
 
Join Date: Dec 2007
Posts: 908
Quote:
Originally Posted by stuckless View Post
I won't post a screen comparison, mainly because it's too much work for me

If you are happy with the quality of your images, and the stability of the imdb provider, then I would stick with it.
It was just request.

I'm not using this utility yet, I'm trying to find out the differences so I can decide. Currently I'm only using the IMDB search import to look up TV and individual files but I have a bunch of movies to import.

Quote:
Originally Posted by stuckless View Post
I typically don't create a new folder each movie.
Me either, should I? I've further made my task harder by appending the year of the release to the file name (name - year.ext format) so I'll probably have to rename all of my files. I guess I could make folders while I'm at it, if need be.
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 02:43 AM.


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