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
  #1  
Old 02-15-2011, 02:47 AM
scanner95 scanner95 is offline
Sage Advanced User
 
Join Date: Jan 2009
Posts: 129
BMT fails to fetch tvdb metadata

Hello,

Recently BMT failed to fetch information for some TV series. I'm using BMT with great success for a long time now, being on Sage v6. Recently I upgraded to v7, following all guidelines for upgrading BMT. Since the upgrade, I had BMT working fine for some new titles, but this one failed.
There are some interesting errors in the log files:

Phoenix-metadata:
Quote:
2011-02-14 18:48:20,158 - AUTO; MEDIA; G:\Movies\_Serials\Mentalist\The Mentalist.s03e14.avi; The Mentalist.s03e14; 6948688
2011-02-14 18:48:20,189 - ERROR; G:\Movies\_Serials\Mentalist\The Mentalist.s03e14.avi; The Mentalist.s03e14; 6948688; Failed while parsing series: MediaSearchResult [extraArgs={CLEAN_TITLE: The Mentalist,SEASON: 03,EPISODE: 14,RAW_TITLE: The Mentalist,FILE: G:\Movies\_Serials\Mentalist\The Mentalist.s03e14.avi,EPISODE_DATE: 2011-02-14,}, id=82459, imdbId=null, metadata=null, providerId=tvdb, score=1.0, title=The Mentalist, type=TV, url=82459, year=2008]
Sagex-api:
Code:
2011-02-14 18:24:29,626 [26733444@qtp-22265879-6] WARN  sagex.remote.media.MediaHandler - 503 - Internal Error - /bmt/media/poster/5395272
java.lang.IllegalArgumentException: im == null!
	at javax.imageio.ImageIO.write(Unknown Source)
	at javax.imageio.ImageIO.write(Unknown Source)
	at sagex.phoenix.fanart.FanartMediaRequestHandler.writeImage(FanartMediaRequestHandler.java:101)
	at sagex.phoenix.fanart.FanartMediaRequestHandler.processRequest(FanartMediaRequestHandler.java:84)
	at sagex.remote.media.ProxySageMediaRequestHandler.processRequest(ProxySageMediaRequestHandler.java:28)
	at sagex.remote.media.MediaHandler.handleRequest(MediaHandler.java:81)
	at org.jdna.bmt.web.server.MediaHandlerServlet.doGet(MediaHandlerServlet.java:82)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:230)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:326)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
phoenix.log:
Code:
[sageId=6948688, sageObject=MediaFile[id=6948688 A[6948691,6948689,"_Serials/Mentalist/The Mentalist.s03e14",0@0214.12:59,42] mask=V host=yuly-home-new encodedBy= format=AVI 0:42:36 1148 kbps [#0 Video[MPEG4-Video 23.98 fps 624x352 39:22 progressive]#1 Audio[MP3 48000 Hz 2 channels 112 kbps idx=1]] G:\Movies\_Serials\Mentalist\The Mentalist.s03e14.avi, Seg0[Ον 2/14 12:59:58.824-Ον 2/14 13:42:35.564]]]
2011-02-14 18:50:23,064 [26733444@qtp-22265879-6] INFO  sagex.phoenix.metadata.search.TVScraperManager - Scraper title-s00e00 created a query: SearchQuery [type=TV, fields={EPISODE: 14,DISC: ,RAW_TITLE: The Mentalist.,SEASON: 03,}, hints=Hints [hints={update_fanart: true,update_metadata: true,scan_missing_metadata: true,scan_subfolders: true,import_tv_as_recording: false,}]] for file SageMediaFile [sageId=6948688, sageObject=MediaFile[id=6948688 A[6948691,6948689,"_Serials/Mentalist/The Mentalist.s03e14",0@0214.12:59,42] mask=V host=yuly-home-new encodedBy= format=AVI 0:42:36 1148 kbps [#0 Video[MPEG4-Video 23.98 fps 624x352 39:22 progressive]#1 Audio[MP3 48000 Hz 2 channels 112 kbps idx=1]] G:\Movies\_Serials\Mentalist\The Mentalist.s03e14.avi, Seg0[Ον 2/14 12:59:58.824-Ον 2/14 13:42:35.564]]] with hints Hints [hints={update_metadata: true,update_fanart: true,scan_missing_metadata: true,scan_subfolders: true,import_tv_as_recording: false,}]
2011-02-14 18:50:23,064 [26733444@qtp-22265879-6] INFO  sagex.phoenix.metadata.search.SearchQueryFactory - Created Search Query: SearchQuery [type=TV, fields={EPISODE_DATE: 2011-02-14,EPISODE: 14,DISC: ,RAW_TITLE: The Mentalist,SEASON: 03,FILE: G:\Movies\_Serials\Mentalist\The Mentalist.s03e14.avi,CLEAN_TITLE: The Mentalist,}, hints=Hints [hints={update_fanart: true,update_metadata: true,scan_missing_metadata: true,scan_subfolders: true,import_tv_as_recording: false,}]]
2011-02-14 18:50:24,814 [26733444@qtp-22265879-6] INFO  sagex.phoenix.metadata.MetadataManager - search(): tvdb; SearchQuery [type=TV, fields={EPISODE_TITLE: ,YEAR: null,EPISODE_DATE: 2011-02-14,EPISODE: 14,SEASON: 3,QUERY: The Mentalist,}, hints=Hints [hints={update_fanart: true,update_metadata: true,scan_missing_metadata: true,scan_subfolders: true,import_tv_as_recording: false,}]]
2011-02-14 18:50:24,814 [26733444@qtp-22265879-6] INFO  sagex.phoenix.metadata.MetadataManager - Searching: The Mentalist using TVDBMetadataProvider[MetadataProviderInfo [id=tvdb, fanartId=null, mediaTypes=[TV], name=thetvdb.com]]
2011-02-14 18:50:24,814 [26733444@qtp-22265879-6] INFO  sagex.phoenix.metadata.provider.tvdb.TVDBSearchParser - TVDB Search: http://www.thetvdb.com/api/GetSeries...=The+Mentalist
2011-02-14 18:50:26,251 [26733444@qtp-22265879-6] INFO  sagex.phoenix.metadata.MetadataManager - Fetching Metadata for MediaSearchResult [extraArgs={SEASON: 3,EPISODE: 14,EPISODE_DATE: 2011-02-14,}, id=82459, imdbId=null, metadata=null, providerId=tvdb, score=1.0, title=The Mentalist, type=TV, url=82459, year=2008]
2011-02-14 18:50:26,251 [26733444@qtp-22265879-6] INFO  sagex.phoenix.metadata.provider.tvdb.TVDBSeriesParser - TVDB Series: http://www.thetvdb.com/api/5645B594A...s/82459/en.xml
2011-02-14 18:50:26,251 [26733444@qtp-22265879-6] INFO  sagex.phoenix.metadata.provider.tvdb.TVDBSeriesParser - TVDB Actors: http://www.thetvdb.com/api/5645B594A...459/actors.xml
2011-02-14 18:50:26,267 [26733444@qtp-22265879-6] INFO  sagex.phoenix.metadata.provider.tvdb.TVDBItemParser - TVDB Episode: http://www.thetvdb.com/api/5645B594A...lt/3/14/en.xml
2011-02-14 18:50:26,267 [26733444@qtp-22265879-6] WARN  sagex.phoenix.metadata.provider.tvdb.TVDBItemParser - Failed to get season/episode specific information for 82459; Season: 3; episode: 14
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-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.arrangeCapacity(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipString(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(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 sagex.phoenix.metadata.provider.tvdb.TVDBItemParser.updateMetadataFromUrl(TVDBItemParser.java:143)
	at sagex.phoenix.metadata.provider.tvdb.TVDBItemParser.addSeasonEpisodeInfo(TVDBItemParser.java:262)
	at sagex.phoenix.metadata.provider.tvdb.TVDBItemParser.getMetadata(TVDBItemParser.java:87)
	at sagex.phoenix.metadata.provider.tvdb.TVDBMetadataProvider.getMetaData(TVDBMetadataProvider.java:33)
	at sagex.phoenix.metadata.MetadataManager.getMetdata(MetadataManager.java:318)
	at org.jdna.bmt.web.server.BrowsingServicesImpl.getMetadata(BrowsingServicesImpl.java:444)
	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 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:562)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:207)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:243)
	at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:230)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:326)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
Any ideas?

Thanks
Reply With Quote
  #2  
Old 02-15-2011, 08:35 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I've seen this happen when the tvdb site is overloaded... basically they are sending me back crap... or nothing at all. I have an open issue, and I'll implementing an automatic retry when automatic metadata lookups fail.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 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
BMT 4.8 / Phoenix 2.2 - The Metadata Fixes stuckless Batch Metadata Tools 46 11-13-2010 05:42 AM
automating BMT fetch? drewg SageTV v7 Customizations 2 10-26-2010 12:02 PM
BMT 4.8 / Phoenix 2.2.1 - Metadata Fails/Succeeds With Provider Toggle ? kcormier Batch Metadata Tools 1 10-18-2010 01:49 PM
Is there a way of doing Metadata WITHOUT BMT plnewton SageTV Customizations 12 08-17-2009 06:53 PM
BMT Metadata Provider List? cowboyway SageMC Custom Interface 1 08-12-2009 05:54 AM


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


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