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
  #281  
Old 01-07-2009, 12:44 PM
babgvant babgvant is offline
Sage Icon
 
Join Date: Jul 2008
Location: London
Posts: 1,834
Quote:
Originally Posted by stuckless View Post
The source is open, so you are free to with it as you please. You can do it and submit it back to me as a patch if you want.

If you are going to do it.... Here's the basics of what you need to know....
  • BMT uses a virtual filesystem that is URI based
  • IMediaResource is an interface and it contains getLocalBackdropUrl()
  • You would need to update getLocalBackdropUrl() in MediaFile and DVDMediaFile
  • SageVideoMetadataPersistence is what is used to write out the image files. The only thing to change here is that you'll want to ensure that the directory structure is actually created before you write the image file.

Now for the hard part. in getLocalBackdropUrl() you'll need to somehow determine what all of the sage video paths are, and then determine what the final destination directory/filename should be. In brent's blog, he made reference to the fact that some special characters need to be stripped out, when calculating the destination filename.

Good luck.
Thanks. I've been meaning to learn java
__________________
babgvant.com | @babgvant | Missing Remote
Reply With Quote
  #282  
Old 01-09-2009, 05:04 PM
mp328 mp328 is offline
Sage Advanced User
 
Join Date: Dec 2006
Posts: 122
no reply on my previous post on the other page and im still having issues with 1.15 and i dont think it's me. i just did another test and same file on 1.15 gives me an error while 1.13 works without issues

can someone pls have a look and let me know that it aint me lol

only command executed on both versions was

java -jar MetadataTool.jar c:\test
Attached Files
File Type: txt 1.15-metadataupdater.txt (14.4 KB, 247 views)
File Type: txt 1.13-metadataupdater.txt (15.5 KB, 235 views)
Reply With Quote
  #283  
Old 01-09-2009, 05:30 PM
S_M_E S_M_E is offline
Sage Fanatic
 
Join Date: Dec 2007
Posts: 908
Try a different provider or other switches. I use:
java -jar MetadataTool.jar --recurse --prompt=true --auto=false --provider=nielm_imdb --setProperty=/imdb/forcedIMDBImageSize:1920 \\Abit\videos\Movies\

You won't need recurse or the forcedimagesize property for your test. Most files work but sometimes I have to use the imdb provider instead of nielm's.
Reply With Quote
  #284  
Old 01-09-2009, 06:25 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I apologize... I totally missed your previous post.

I looked at the 1.15 log and i see an error in there regarding unspported class version. What java version are you using? I know that java 1.5 (java 5) is the minumum supported for this tool. I may have accidentally recompiled with java 6, which may account for the exception that i;m seeing the log file.

I checked your prev posted log file. That one is from using it as a plugin. I checked the found the spot in the source code where the exception was happening, but I can't figure how it's getting there... I do a "null" check before the statement... and yet your exception is throwing a null pointer... so I'm confused about that.

If you are using it as a plugin, then make sure the JARs directory doesn't have 2 copies of the metadata-updater jar file. Keep the newest one.

Also, if you haven't done so, then download a fresh copy of the BMT command and extract it into a separate directory, and run from there.

Also, if you have cache or .cache directory, then delete that directory.

Could do a java -version to get me you java version. Also do a java -jar MetadataTool.jar --listProviders and see if you have the full list of providers. I think that maybe something is off with the provider registration.

Thanks, and sorry about ignoring you.

Quote:
Originally Posted by mp328 View Post
no reply on my previous post on the other page and im still having issues with 1.15 and i dont think it's me. i just did another test and same file on 1.15 gives me an error while 1.13 works without issues

can someone pls have a look and let me know that it aint me lol

only command executed on both versions was

java -jar MetadataTool.jar c:\test
Reply With Quote
  #285  
Old 01-10-2009, 11:18 AM
matt91's Avatar
matt91 matt91 is offline
Sage Icon
 
Join Date: Feb 2005
Location: Washington, DC
Posts: 1,185
Maybe this is something that I can do in Sage itself, but I'll ask here because it's come up when I've downloaded metadata.

It's about genre's. I currently have "Action" as a genre, but now also have "Action Film". I know I can go into the .profiles to edit these manually, but, well, that's a manual fix.

Is there a way to have the metadata tool force "Action Film" to "Action", or, alternatively, have them collapsed together in Sage (so that they appear in the same group in SageMC?)

thanks
matt
__________________
Server: Ubuntu 16.04 running Sage for Linux v9
Reply With Quote
  #286  
Old 01-10-2009, 11:49 AM
mp328 mp328 is offline
Sage Advanced User
 
Join Date: Dec 2006
Posts: 122
lets start from the beginning, looks like u were right the last two logs i posted was a java issue, my server comp where i was running the BMT had only 1.5.xx installed, once i updated the java to 1.6.11 it worked with some issues however

i still had a problem or two where when i did a scan and set --auto=false and then i saw the movie i wanted to pick, it wouldnt select them, see command-copy.txt. two files i can remember were Burn-e, even though i select 01 it picked 00 (burn after reading) and then the next one was kingdom (the kingdom) after selecting 02 it would still select 00 which was indy jones kingdom of the skull

i also included the full log of that session, had to split into two parts though it was too big. i used the themoviedb.com-2 and i was getting backgrounds as well for the movies, at the end it said 8 entries were skipped.

then the plugin is still giving me the same problem. that computer has 1.6.11 installed as well, but i dont know why 1.15 plugin will not work, but the 1.13 does and i did make sure i deleted the old updater file when installing 1.15 (mailcheck.log attached)

tnx for all ur work
Attached Files
File Type: txt metadata-command-copy.txt (1.8 KB, 232 views)
File Type: txt metadataupdater-1.txt (567.4 KB, 221 views)
File Type: txt metadataupdater-2.txt (539.7 KB, 377 views)
File Type: txt mailcheck.txt (2.3 KB, 229 views)
Reply With Quote
  #287  
Old 01-10-2009, 03:35 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I can't seem to find a reason why you are experiencing these issues... so I'm going to do another build and upload it. I'm not sure if I can do it this weekend or not... but when I do, I'll post a notice in this forum. I'm also going to add some extra debug information that may help me.
Reply With Quote
  #288  
Old 01-10-2009, 04:47 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
New Release 1.16 - Bug fixes

I've updated new releases for both, BMT and the BMT Plugin.

I fixed a bug in the Plugin portion that was causing a null pointer exception when it tried to write the metadata for a movie that did not contain a backdrop.

I also added some extra debugging and remove the excessive imdb logging.
Reply With Quote
  #289  
Old 01-11-2009, 09:08 PM
mp328 mp328 is offline
Sage Advanced User
 
Join Date: Dec 2006
Posts: 122
cool i'll try it out in the next few days when i have some time and stop recording 24, hope it works better
Reply With Quote
  #290  
Old 01-14-2009, 05:43 PM
mp328 mp328 is offline
Sage Advanced User
 
Join Date: Dec 2006
Posts: 122
well i managed to update the plugin and tried one movie and it didnt work, now i just tried another one and it did work

i cant find any other references anywhere else

let me know if u would like any other files

here is a copy from the debug file


Quote:
Wed 1/14 19:16:23.557 BatchMetadataTools; Handling File: X:\Movies\Defiance.avi; arg:
Wed 1/14 19:16:23.698 =======>Get getMediaTimeMillis0=183769.
Wed 1/14 19:16:23.937 =======>Get getMediaTimeMillis0=184018.
Wed 1/14 19:16:24.135 Metadata Imported for: X:\Movies\Defiance.avi
Wed 1/14 19:16:24.151 File Format Parsed X:\Movies\Defiance.avi=AVI 2:16:47 1434 kbps [#0 Video[MPEG4-Video 23.979143 fps 720x400 9:5 progressive]#1 Audio[AC3 48000 Hz 448 kbps idx=1]{_releaseDate=16 January 2009 (USA), Director=Edward Zwick;, _providerDataUrl=http://www.imdb.com/title/tt1034303/, Title=Defiance, Genre=Drama, Actor=Daniel Craig -- Tuvia Bielski;
Liev Schreiber -- Zus Bielski;
Jamie Bell -- Asael Bielski;
Alexa Davalos -- Lilka Ticktin;
Allan Corduner -- Shamon Haretz;
Mark Feuerstein -- Isaac Malbin;
Tomas Arana -- Ben Zion Gulkowitz;
Jodhi May -- Tamara Skidelsky;
Kate Fahy -- Riva Reich;
Iddo Goldberg -- Yitzchak Shulman;
Iben Hjejle -- Bella;
Martin Hancock -- Peretz Shorshaty;
Ravil Isyanov -- Viktor Panchenko;
Jacek Koman -- Konstanty 'Koscik' Kozlowski;
George MacKay -- Aron Bielski;, _serializedDescription=Three Jewish brothers escape from Nazi-occupied Poland into the Belarussian forest, where they join Russian resistance fighters and endeavor to build a village in order to protect themselves and others in danger. |, Rated=R, _serializedTitle=Defiance, _userRating=7.7/10, _company=Bedford Falls Company, The, _thumbnailUrl=http://ia.media-imdb.com/images/M/MV5BMTI0NjA3OTU4NF5BMl5BanBnXkFtZTcwNDM4NzEwMg@@._V1._SX94_SY140_.jpg, Writer=Clayton Frohman;Edward Zwick;, _providerId=imdb, Year=2008, _serializedGenres=Drama;War, _ratedDescription=Rated R for violence and language., _aspectRatio=1.85 : 1, Description=Three Jewish brothers escape from Nazi-occupied Poland into the Belarussian forest, where they join Russian resistance fighters and endeavor to build a village in order to protect themselves and others in danger. |
User Rating: 7.7/10
, _serializedCast=2|Edward Zwick|null|/name/nm0001880/;1|Clayton Frohman|null|/name/nm0296244/;1|Edward Zwick|null|/name/nm0001880/;0|Daniel Craig|Tuvia Bielski|/name/nm0185819/;0|Liev Schreiber|Zus Bielski|/name/nm0000630/;0|Jamie Bell|Asael Bielski|/name/nm0068260/;0|Alexa Davalos|Lilka Ticktin|/name/nm1111968/;0|Allan Corduner|Shamon Haretz|/name/nm0179680/;0|Mark Feuerstein|Isaac Malbin|/name/nm0275417/;0|Tomas Arana|Ben Zion Gulkowitz|/name/nm0032962/;0|Jodhi May|Tamara Skidelsky|/name/nm0562003/;0|Kate Fahy|Riva Reich|/name/nm0265298/;0|Iddo Goldberg|Yitzchak Shulman|/name/nm0325221/;0|Iben Hjejle|Bella|/name/nm0005013/;0|Martin Hancock|Peretz Shorshaty|/name/nm0359398/;0|Ravil Isyanov|Viktor Panchenko|/name/nm0411570/;0|Jacek Koman|Konstanty 'Koscik' Kozlowski|/name/nm0464522/;0|George MacKay|Aron Bielski|/name/nm1126657/, RunningTime=137 min}]
Wed 1/14 19:16:24.152 ERROR parsing metadata number of:java.lang.NumberFormatException: For input string: "137 min"
Wed 1/14 19:16:24.198 =======>Get getMediaTimeMillis0=184270.
Wed 1/14 19:16:24.370 Added:MediaFile[id=4390804 A[4390823,4390805,"Movies/Defiance",0@0114.16:59,136] host=HTPC encodedBy= format=AVI 2:16:47 1434 kbps [#0 Video[MPEG4-Video 23.979143 fps 720x400 9:5 progressive]#1 Audio[AC3 48000 Hz 448 kbps idx=1]] X:\Movies\Defiance.avi, Seg0[Wed 1/14 16:59:36.735-Wed 1/14 19:16:24.135]]
Wed 1/14 19:16:24.371 New Library File MediaFile[id=4390804 A[4390823,4390805,"Movies/Defiance",0@0114.16:59,136] host=HTPC encodedBy= format=AVI 2:16:47 1434 kbps [#0 Video[MPEG4-Video 23.979143 fps 720x400 9:5 progressive]#1 Audio[AC3 48000 Hz 448 kbps idx=1]] X:\Movies\Defiance.avi, Seg0[Wed 1/14 16:59:36.735-Wed 1/14 19:16:24.135]]
and here a copy from 1.13 from a day ago

Quote:
Tue 1/13 17:46:58.055 BatchMetadataTools; Handling File: X:\Movies\Defiance.avi; arg:
Tue 1/13 17:46:58.492 Metadata Imported for: X:\Movies\Defiance.avi
Tue 1/13 17:46:58.492 File Format Parsed X:\Movies\Defiance.avi=AVI 2:16:47 1434 kbps [#0 Video[MPEG4-Video 23.979143 fps 720x400 9:5 progressive]#1 Audio[AC3 48000 Hz 448 kbps idx=1]{_releaseDate=16 January 2009 (USA), _serializedDirectors=2|Edward Zwick|null|/name/nm0001880/, Director=Edward Zwick;, _providerDataUrl=http://www.imdb.com/title/tt1034303/, Title=Defiance, Genre=Drama, Actor=Daniel Craig -- Tuvia Bielski;
Liev Schreiber -- Zus Bielski;
Jamie Bell -- Asael Bielski;
Alexa Davalos -- Lilka Ticktin;
Allan Corduner -- Shamon Haretz;
Mark Feuerstein -- Isaac Malbin;
Tomas Arana -- Ben Zion Gulkowitz;
Jodhi May -- Tamara Skidelsky;
Kate Fahy -- Riva Reich;
Iddo Goldberg -- Yitzchak Shulman;
Iben Hjejle -- Bella;
Martin Hancock -- Peretz Shorshaty;
Ravil Isyanov -- Viktor Panchenko;
Jacek Koman -- Konstanty 'Koscik' Kozlowski;
George MacKay -- Aron Bielski;, _serializedDescription=Three Jewish brothers escape from Nazi-occupied Poland into the Belarussian forest, where they join Russian resistance fighters and endeavor to build a village in order to protect themselves and others in danger. |, _serializedActors=0|Daniel Craig|Tuvia Bielski|/name/nm0185819/;0|Liev Schreiber|Zus Bielski|/name/nm0000630/;0|Jamie Bell|Asael Bielski|/name/nm0068260/;0|Alexa Davalos|Lilka Ticktin|/name/nm1111968/;0|Allan Corduner|Shamon Haretz|/name/nm0179680/;0|Mark Feuerstein|Isaac Malbin|/name/nm0275417/;0|Tomas Arana|Ben Zion Gulkowitz|/name/nm0032962/;0|Jodhi May|Tamara Skidelsky|/name/nm0562003/;0|Kate Fahy|Riva Reich|/name/nm0265298/;0|Iddo Goldberg|Yitzchak Shulman|/name/nm0325221/;0|Iben Hjejle|Bella|/name/nm0005013/;0|Martin Hancock|Peretz Shorshaty|/name/nm0359398/;0|Ravil Isyanov|Viktor Panchenko|/name/nm0411570/;0|Jacek Koman|Konstanty 'Koscik' Kozlowski|/name/nm0464522/;0|George MacKay|Aron Bielski|/name/nm1126657/, Rated=Rated R for violence and language., _serializedTitle=Defiance, _userRating=7.7/10, _thumbnailUrl=http://ia.media-imdb.com/images/M/MV5BMTI0NjA3OTU4NF5BMl5BanBnXkFtZTcwNDM4NzEwMg@@._V1._SX94_SY140_.jpg, _company=Bedford Falls Company, The, Writer=Clayton Frohman;Edward Zwick;, _providerId=imdb, Year=2008, _serializedGenres=Drama;War, _aspectRatio=1.85 : 1, Description=Three Jewish brothers escape from Nazi-occupied Poland into the Belarussian forest, where they join Russian resistance fighters and endeavor to build a village in order to protect themselves and others in danger. |
User Rating: 7.7/10
, _serializedWriters=1|Clayton Frohman|null|/name/nm0296244/;1|Edward Zwick|null|/name/nm0001880/, RunningTime=137 min}]
Tue 1/13 17:46:58.492 ERROR parsing metadata number of:java.lang.NumberFormatException: For input string: "137 min"
Tue 1/13 17:46:58.904 Added:MediaFile[id=4380050 A[4380069,4380051,"Movies/Defiance",0@0113.15:30,136] host=HTPC encodedBy= format=AVI 2:16:47 1434 kbps [#0 Video[MPEG4-Video 23.979143 fps 720x400 9:5 progressive]#1 Audio[AC3 48000 Hz 448 kbps idx=1]] X:\Movies\Defiance.avi, Seg0[Tue 1/13 15:30:11.092-Tue 1/13 17:46:58.492]]
Tue 1/13 17:46:58.904 New Library File MediaFile[id=4380050 A[4380069,4380051,"Movies/Defiance",0@0113.15:30,136] host=HTPC encodedBy= format=AVI 2:16:47 1434 kbps [#0 Video[MPEG4-Video 23.979143 fps 720x400 9:5 progressive]#1 Audio[AC3 48000 Hz 448 kbps idx=1]] X:\Movies\Defiance.avi, Seg0[Tue 1/13 15:30:11.092-Tue 1/13 17:46:58.492]]
Tue 1/13 17:47:26.367 Updating Disk Space Bar

Last edited by mp328; 01-14-2009 at 09:55 PM.
Reply With Quote
  #291  
Old 01-15-2009, 06:36 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
mp328, could you try using the command line tool and then send me the log file. Also, maybe you could send me your sagetv_0.txt log file as well for the media file that doesn't work.

Could you also send me the file names for the ones that didn't work.

Thanks.

Last edited by stuckless; 01-15-2009 at 06:39 AM.
Reply With Quote
  #292  
Old 01-15-2009, 05:33 PM
mp328 mp328 is offline
Sage Advanced User
 
Join Date: Dec 2006
Posts: 122
Quote:
Originally Posted by stuckless View Post
mp328, could you try using the command line tool and then send me the log file. Also, maybe you could send me your sagetv_0.txt log file as well for the media file that doesn't work.

Could you also send me the file names for the ones that didn't work.

Thanks.
i think it was an odd name movie that didnt exist on IMDB and that's why that one movie did not work, cuz i couldnt even find it manually

it worked fine with "Defiance" as u can see below, also worked with "18 year old virgin" but this stupid "Penguins Save the Planets" animation did not work and for some reason "letters from iwu jima" also would not work thru the plugin, but works fine with the BMT

here is the last sage_tv log and the one from before that has the "penguin" entry in it, had to trim that one down, it was 6MB
Attached Files
File Type: txt metadataupdater.txt (10.4 KB, 253 views)
File Type: txt sagetv_0-a.txt (684.2 KB, 227 views)
File Type: txt sagetv_0-b.txt (713.2 KB, 216 views)
File Type: txt sagetv_2-a.txt (657.3 KB, 243 views)
File Type: txt sagetv_2-b.txt (648.2 KB, 225 views)
Reply With Quote
  #293  
Old 01-15-2009, 05:34 PM
mp328 mp328 is offline
Sage Advanced User
 
Join Date: Dec 2006
Posts: 122
last two parts

like i said, i believe it is working, just an odd name that one file it didnt find anything
Attached Files
File Type: txt sagetv_2-c.txt (593.6 KB, 229 views)
File Type: txt sagetv_2-d.txt (447.3 KB, 233 views)
Reply With Quote
  #294  
Old 01-15-2009, 06:14 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Thanks for the logs. I couldn't find anything that was out of the ordinary in them.

As for the "letters from iwu jima", I didn't see any reference to the metadata plugin handing it at all. I saw an entry that sage was removing it, and another entry related to dvd profiler, but nothing related to metadata plugin.

But, it does seem that for the most part, the plugin is working, except for entries where the provider (imdb) can't find the movie.
Reply With Quote
  #295  
Old 01-15-2009, 08:51 PM
mp328 mp328 is offline
Sage Advanced User
 
Join Date: Dec 2006
Posts: 122
Quote:
Originally Posted by stuckless View Post
Thanks for the logs. I couldn't find anything that was out of the ordinary in them.

As for the "letters from iwu jima", I didn't see any reference to the metadata plugin handing it at all. I saw an entry that sage was removing it, and another entry related to dvd profiler, but nothing related to metadata plugin.

But, it does seem that for the most part, the plugin is working, except for entries where the provider (imdb) can't find the movie.
cool tnx for the help!!!
Reply With Quote
  #296  
Old 01-16-2009, 03:21 PM
S_M_E S_M_E is offline
Sage Fanatic
 
Join Date: Dec 2007
Posts: 908
I'm not sure why but some of the imported videos in my collection, that DO have .properties files aren't being skipped. Every time I run BMT it prompts me for these.

So I deleted the .properties files and ran BMT, it prompted me for the movies again but it never made another .properties file.
Auto Updated: 0; Auto Skiped: 0; Manual Updated:0; Manual Skipped: 401;
(typo in "Auto Skiped" btw)

Command:
java -jar MetadataTool.jar --recurse --prompt=true --auto=false --provider=nielm_imdb --setProperty=/imdb/forcedIMDBImageSize:1920 \\Abit\videos\Movies\

If I use themoviedb.com-2 provider it creates the .properties file but the next time I run BMT it prompts for the same movies again.
Auto Updated: 0; Auto Skiped: 0; Manual Updated:9; Manual Skipped: 382;

I'll attach the log using both nielm_imdb and themoviedb.com-2 providers on one of the problem movies so they won't be huge.
Attached Files
File Type: txt metadataupdater-nielm.txt (9.6 KB, 212 views)
File Type: txt metadataupdater-themoviedb.com-2.txt (5.0 KB, 227 views)
Reply With Quote
  #297  
Old 01-16-2009, 05:22 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
SME, thanks for the logs. I fixed the typo and I did find a bug in my nielm provider.

As for it pestering you, when I does have metadata, here is the criteria for NOT skipping a file...
1. mising .properties file (not your case)
2. timestamp on .properties is newer than the timestamp on the mediafile
3. .properties is missing EITHER Title or _thumbnailUrl

#2 should not be happening, since BMT updates the timestamp on your media files when it writes the .properties file. It does this, so that SageTV 'notices' that your file has new metadata. BUT, I've seen cases in my own environment, that if the files are on a network share, then sometimes that timestamp doesn't get updated. Not sure is this a java bug, os bug, or a network share bug. The other reason for BMT to NOT update the timestamp on the media file is because of file permissions.
Reply With Quote
  #298  
Old 01-16-2009, 06:04 PM
S_M_E S_M_E is offline
Sage Fanatic
 
Join Date: Dec 2007
Posts: 908
I'm sure that #3 isn't an issue and permissions are OK too; when I used themoviedb.com-2 provider It did "touch" the files to update the timestamp so that rules out #2 too. I did try 1.15 again with same results but I didn't go back any further than that. Once you release the next version I'll try again.

I also saw a couple of these "fatal errors" while trying, again, to grab backdrops for a different file:
[Fatal Error] Movie.getInfo?id=2787&api_key=d4ad46ee51d364386b6cf3b580fb5d8c:21:44: The reference to entity "ct" must end with the ';' delimiter.

From the log:
42758 DEBUG [main] org.jdna.media.metadata.impl.sage.SageVideoMetaDataPersistence - Loading Sage Video Metadata properties: \\Abit\videos\Movies\The Chronicles of Riddick Collection\Pitch Black (2000).avi.properties
43384 ERROR [main] org.jdna.media.metadata.impl.themoviedb.TheMovieDBItemParser - Failed while parsing: http://api.themoviedb.org/2.0/Movie....=2787&api_key=
org.xml.sax.SAXParseException: The reference to entity "ct" must end with the ';' delimiter.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at org.jdna.media.metadata.impl.themoviedb.TheMovieDBItemParser.getMetadata(TheMovieDBItemParser.java:43)
at org.jdna.media.metadata.impl.themoviedb.TheMovieDBMetadataProvider.getMetaData(TheMovieDBMetadataProvider.java:24)
at org.jdna.media.metadata.impl.themoviedb.TheMovieDBMetadataProvider.getMetaData(TheMovieDBMetadataProvider.java:20)
at org.jdna.media.util.BackdropDownloaderVisitor.visit(BackdropDownloaderVisitor.java:57)
at org.jdna.media.impl.AbstractMediaResource.accept(AbstractMediaResource.java:124)
at org.jdna.media.impl.MediaFolder.accept(MediaFolder.java:174)
at org.jdna.media.impl.MediaFolder.accept(MediaFolder.java:166)
at org.jdna.media.impl.MediaFolder.accept(MediaFolder.java:174)
at org.jdna.metadataupdater.MetadataUpdater.processBackdrops(MetadataUpdater.java:321)
at org.jdna.metadataupdater.MetadataUpdater.process(MetadataUpdater.java:220)
at org.jdna.metadataupdater.MetadataUpdater.main(MetadataUpdater.java:92)
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 MetadataTool.main(MetadataTool.java:134)
43385 ERROR [main] org.jdna.media.util.BackdropDownloaderVisitor - Failed to process uri: file:////Abit/videos/Movies/The%20Chronicles%20of%20Riddick%20Collection/Pitch%20Black%20(2000).avi
java.lang.NullPointerException
at org.jdna.media.util.BackdropDownloaderVisitor.visit(BackdropDownloaderVisitor.java:58)
at org.jdna.media.impl.AbstractMediaResource.accept(AbstractMediaResource.java:124)
at org.jdna.media.impl.MediaFolder.accept(MediaFolder.java:174)
at org.jdna.media.impl.MediaFolder.accept(MediaFolder.java:166)
at org.jdna.media.impl.MediaFolder.accept(MediaFolder.java:174)
at org.jdna.metadataupdater.MetadataUpdater.processBackdrops(MetadataUpdater.java:321)
at org.jdna.metadataupdater.MetadataUpdater.process(MetadataUpdater.java:220)
at org.jdna.metadataupdater.MetadataUpdater.main(MetadataUpdater.java:92)
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 MetadataTool.main(MetadataTool.java:134)


I have no idea why but I'm sure you will.
Reply With Quote
  #299  
Old 01-16-2009, 07:47 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I'll try to put out another release this weekend, with some extra debugging for when it does not skip a file. That might help us narrow it down.

As for one error, themoviedb.com is sending back an invalid xml reply (data is not being escaped correctly). I've opened a bug with their developers. Thanks for finding it.

The other error (null pointer) is now fixed. Thanks for finding it.

Hopefully I'll be able to get a new build out sometime this weekend.
Reply With Quote
  #300  
Old 01-16-2009, 08:33 PM
S_M_E S_M_E is offline
Sage Fanatic
 
Join Date: Dec 2007
Posts: 908
Actually, there was more than one "fatal error" do you need another?

[Fatal Error] Movie.getInfo?id=585&api_key=d4ad46ee51d364386b6cf3b580fb5d8c:75:18: The entity name must immediately follow the '&' in the entity reference.

From the log:
18391 ERROR [main] org.jdna.media.metadata.impl.themoviedb.TheMovieDBItemParser - Failed while parsing: http://api.themoviedb.org/2.0/Movie....d=585&api_key=
org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at org.jdna.media.metadata.impl.themoviedb.TheMovieDBItemParser.getMetadata(TheMovieDBItemParser.java:43)
at org.jdna.media.metadata.impl.themoviedb.TheMovieDBMetadataProvider.getMetaData(TheMovieDBMetadataProvider.java:24)
at org.jdna.media.metadata.impl.themoviedb.TheMovieDBMetadataProvider.getMetaData(TheMovieDBMetadataProvider.java:20)
at org.jdna.media.util.BackdropDownloaderVisitor.visit(BackdropDownloaderVisitor.java:57)
at org.jdna.media.impl.AbstractMediaResource.accept(AbstractMediaResource.java:124)
at org.jdna.media.impl.MediaFolder.accept(MediaFolder.java:174)
at org.jdna.media.impl.MediaFolder.accept(MediaFolder.java:166)
at org.jdna.media.impl.MediaFolder.accept(MediaFolder.java:174)
at org.jdna.metadataupdater.MetadataUpdater.processBackdrops(MetadataUpdater.java:321)
at org.jdna.metadataupdater.MetadataUpdater.process(MetadataUpdater.java:220)
at org.jdna.metadataupdater.MetadataUpdater.main(MetadataUpdater.java:92)
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 MetadataTool.main(MetadataTool.java:134)
18392 ERROR [main] org.jdna.media.util.BackdropDownloaderVisitor - Failed to process uri: file:////Abit/videos/Movies/Disney%20Collection/Monsters,%20Inc%20(2001).mkv
java.lang.NullPointerException
at org.jdna.media.util.BackdropDownloaderVisitor.visit(BackdropDownloaderVisitor.java:58)
at org.jdna.media.impl.AbstractMediaResource.accept(AbstractMediaResource.java:124)
at org.jdna.media.impl.MediaFolder.accept(MediaFolder.java:174)
at org.jdna.media.impl.MediaFolder.accept(MediaFolder.java:166)
at org.jdna.media.impl.MediaFolder.accept(MediaFolder.java:174)
at org.jdna.metadataupdater.MetadataUpdater.processBackdrops(MetadataUpdater.java:321)
at org.jdna.metadataupdater.MetadataUpdater.process(MetadataUpdater.java:220)
at org.jdna.metadataupdater.MetadataUpdater.main(MetadataUpdater.java:92)
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 MetadataTool.main(MetadataTool.java:134)

and:
47917 ERROR [main] org.jdna.media.metadata.impl.themoviedb.TheMovieDBMetadataProvider - Failed to parse/search using url: http://api.themoviedb.org/2.0/Movie....6cf3b580fb5d8c
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 3-byte UTF-8 sequence.
at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanLiteral(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDriver.scanRootElementHook(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at org.jdna.media.metadata.impl.themoviedb.TheMovieDBSearchParser.getResults(TheMovieDBSearchParser.java:37)
at org.jdna.media.metadata.impl.themoviedb.TheMovieDBMetadataProvider.search(TheMovieDBMetadataProvider.java:29)
at org.jdna.media.util.BackdropDownloaderVisitor.visit(BackdropDownloaderVisitor.java:55)
at org.jdna.media.impl.AbstractMediaResource.accept(AbstractMediaResource.java:124)
at org.jdna.media.impl.MediaFolder.accept(MediaFolder.java:174)
at org.jdna.media.impl.MediaFolder.accept(MediaFolder.java:166)
at org.jdna.media.impl.MediaFolder.accept(MediaFolder.java:174)
at org.jdna.metadataupdater.MetadataUpdater.processBackdrops(MetadataUpdater.java:321)
at org.jdna.metadataupdater.MetadataUpdater.process(MetadataUpdater.java:220)
at org.jdna.metadataupdater.MetadataUpdater.main(MetadataUpdater.java:92)
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 MetadataTool.main(MetadataTool.java:134)

Last edited by S_M_E; 01-16-2009 at 08:35 PM.
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.