|
Batch Metadata Tools This forums is for discussing the user-created Batch Metadata Tools for SageTV. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
How to figure out why metadata isn't located?
Checked the wiki.. Didn't see any steps on how to debug this. Is there a guide to figure out why metadata is not located for a specific video?
I have a set of videos that it seems like BMT can't find data for. However, if I go into the individual recording, select find metadata, manually select TV, then manually enter the season and episode numbers it matches it correctly, and it finds the metadata... However, this show is named the exact same as others that it can find meta data for. Is there a specific log that I should look into? I see this in the phoenix log: Code:
2010-08-05 18:00:41,293 [Thread-773] WARN phoenix.log - AutomaticMetadataVisitor(): lookup failed with an error for DecoratedItem: [Resource[Id: TMP7955871, Title: Snuff Box - S01E05]] MetadataException [query=SearchQuery; Type: TV; SEASON:01;RAW_TITLE:Snuff Box -;CLEAN_TITLE:Snuff Box;FILE:\\stafford\tv\Snuff Box\Snuff Box - S01E05.avi;EPISODE_DATE:2009-08-24;DISC:;EPISODE:05;QUERY:Snuff Box;, ] at sagex.phoenix.metadata.MetadataManager.getMetdata(MetadataManager.java:476) at sagex.phoenix.metadata.MetadataManager.automaticUpdate(MetadataManager.java:556) at sagex.phoenix.metadata.MetadataManager.automaticUpdate(MetadataManager.java:526) at sagex.phoenix.metadata.AutomaticMetadataVisitor.visit(AutomaticMetadataVisitor.java:23) at sagex.phoenix.vfs.DecoratedMediaFile.accept(DecoratedMediaFile.java:48) at sagex.phoenix.vfs.DecoratedMediaFolder.accept(DecoratedMediaFolder.java:61) at sagex.phoenix.metadata.PhoenixMetadataSupport$1.run(PhoenixMetadataSupport.java:110) at sagex.phoenix.progress.ProgressTrackerManager$1.run(ProgressTrackerManager.java:48) 2010-08-05 18:00:41,293 [Thread-773] WARN sagex.phoenix.metadata.search.TVFileNameUtils - Scraper sagex.phoenix.scrapers.xbmc.XbmcScraper@a756cf failed to parse year for: \\stafford\tv\Snuff Box\Snuff Box - S01E06.avi 2010-08-05 18:00:41,293 [Thread-773] INFO sagex.phoenix.metadata.MetadataManager - search(): tvdb; SearchQuery; Type: TV; SEASON:01;RAW_TITLE:Snuff Box -;CLEAN_TITLE:Snuff Box;FILE:\\stafford\tv\Snuff Box\Snuff Box - S01E06.avi;EPISODE_DATE:2009-10-07;DISC:;EPISODE:06; 2010-08-05 18:00:41,293 [Thread-773] INFO sagex.phoenix.metadata.MetadataManager - Searching: Snuff Box - using TVDBMetadataProvider[MetadataProviderInfo [id=tvdb, fanartId=null, mediaTypes=[TV], name=thetvdb.com]] 2010-08-05 18:00:41,293 [Thread-773] INFO sagex.phoenix.metadata.provider.tvdb.TVDBSearchParser - TVDB Search: http://www.thetvdb.com/api/GetSeries.php?seriesname=Snuff+Box+- 2010-08-05 18:00:41,293 [Thread-773] INFO sagex.phoenix.metadata.MetadataManager - Searching Using Cleaned Title: Snuff Box using TVDBMetadataProvider[MetadataProviderInfo [id=tvdb, fanartId=null, mediaTypes=[TV], name=thetvdb.com]] 2010-08-05 18:00:41,293 [Thread-773] INFO sagex.phoenix.metadata.provider.tvdb.TVDBSearchParser - TVDB Search: http://www.thetvdb.com/api/GetSeries.php?seriesname=Snuff+Box 2010-08-05 18:00:41,293 [Thread-773] WARN phoenix.log - AutomaticMetadataVisitor(): lookup failed with an error for DecoratedItem: [Resource[Id: TMP22416447, Title: Snuff Box - S01E06]] MetadataException [query=SearchQuery; Type: TV; SEASON:01;RAW_TITLE:Snuff Box -;CLEAN_TITLE:Snuff Box;FILE:\\stafford\tv\Snuff Box\Snuff Box - S01E06.avi;EPISODE_DATE:2009-10-07;DISC:;EPISODE:06;QUERY:Snuff Box;, ] at sagex.phoenix.metadata.MetadataManager.getMetdata(MetadataManager.java:476) at sagex.phoenix.metadata.MetadataManager.automaticUpdate(MetadataManager.java:556) at sagex.phoenix.metadata.MetadataManager.automaticUpdate(MetadataManager.java:526) at sagex.phoenix.metadata.AutomaticMetadataVisitor.visit(AutomaticMetadataVisitor.java:23) at sagex.phoenix.vfs.DecoratedMediaFile.accept(DecoratedMediaFile.java:48) at sagex.phoenix.vfs.DecoratedMediaFolder.accept(DecoratedMediaFolder.java:61) at sagex.phoenix.metadata.PhoenixMetadataSupport$1.run(PhoenixMetadataSupport.java:110) at sagex.phoenix.progress.ProgressTrackerManager$1.run(ProgressTrackerManager.java:48) I am running Sage 7.0.13 and the latest BMT. Last edited by broconne; 08-05-2010 at 07:14 PM. Reason: Updated with version information. |
#2
|
||||
|
||||
The problem is that bmt has to use a fuzzy logic search in order to determine if "Snuff Box" is similar to "Berry & Fulcher's Snuff Box". While to you and I, this looks close enough, but to bmt, this is not close enough
You have options... 1. (recommended) Try to name your filenames as close to the show names in thetvdb.com as possible. 2. Add an entry to the MediaTitles.xml that will map your name to the tvdb id for the show. (little more advanced) The location for the MediaTiltes.xml file should be STVs/Phoenix/scrapers/ and there is a sample file in there. Right now, if you edit that file, you will need to restart the sagetv server
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#3
|
|||
|
|||
MediaTitles example
Could someone provide a <match> example to handle the lookup of my video files in MediaTitles.xml?
Two that I am having troubles with that need an entry are as follows... "SATC [2x02] The Awful Truth.avi" = 76648 on tvdb "HeartLand S02E03 Gift Horse.avi" = 82701 on tvdb What would the entries be in MediaTitles.xml ? k |
#4
|
||||
|
||||
Quote:
Code:
<match> <regex>[\\/]SATC</regex> <metadata type="tv" name="tvdb">76648</metadata> </match> <match> <regex>[\\/]HeartLand</regex> <metadata type="tv" name="tvdb">82701</metadata> </match> Keep in mind, that if you modify the STVs/Phoenix/scrapers/MediaTitles.xml file, then you need to restart the sagetv server for the changes to take effect.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#5
|
|||
|
|||
Quote:
Here is a sample error row from the log... Code:
2010-08-16 19:58:28,891 - ERROR; \\storage\volume_1\series\Heartland\Season 2\Heartland S02E17 Full Circle.avi; Heartland; 196868; No metadata for: DecoratedItem: [Resource[Id: 196868, Title: Heartland]] Code:
2010-08-16 20:05:54,904 - ERROR; \\storage\volume_1\series\Sex and the City\Season 1\SATC [1x02] Models And Mortals.avi; SATC [1x02] Models And Mortals; 1959; Search Failed for SearchQuery; Type: TV; QUERY:SATC;RAW_TITLE:SATC;EPISODE:02;SEASON:1;FILE:\\storage\volume_1\series\Sex and the City\Season 1\SATC [1x02] Models And Mortals.avi;CLEAN_TITLE:SATC;EPISODE_DATE:2008-04-03;PROVIDER:tvdb;ID:76648;DISC:; Code:
<titles> <!-- A Match can contain a regex that will be used to match against the path. If it matches, then it will then set the fields, title, year, or id, into the search query. --> <match> <regex>[\\/]SATC</regex> <metadata type="tv" name="tvdb">76648</metadata> </match> <match> <regex>[\\/]HeartLand</regex> <metadata type="tv" name="tvdb">82701</metadata> </match> </titles> Thoughts? k |
#6
|
||||
|
||||
After looking at your output, it doesn't look like it's picking up your MediaTitles.xml file changes.
Could you post the full path of your MediaTitles.xml file? Also, take the latest build, 2.0.9, of phoenix-core, which has a bunch of fixes for MediaTitles.xml.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#7
|
|||
|
|||
Quote:
C:\Program Files (x86)\SageTV\SageTV\STVs\Phoenix\scrapers\MediaTitles.xml I have to believe that the file is being read as the SATC entry worked. PS: I have tried this with 2.09 Here is one of the error lines in metadata.log Code:
2010-08-18 17:23:13,463 - ERROR; \\storage\volume_1\series\Heartland\Season 2\HeartLand S02E07 Sweatheart of the Rodeo.avi; Heartland; 126905; No metadata for: DecoratedItem: [SageMediaFile [sageId=126905, sageObject=sage.b.p@1d144a4]] Code:
2010-08-18 17:23:18,017 [Thread-42] INFO sagex.phoenix.metadata.provider.tvdb.TVDBSearchParser - TVDB Search: http://www.thetvdb.com/api/GetSeries.php?seriesname=Heartland 2010-08-18 17:23:18,019 [Thread-42] INFO sagex.phoenix.metadata.MetadataManager - Fetching Metadata for MediaSearchResult [extraArgs=CLEAN_TITLE: Heartland,ID: 82701,YEAR: 1989,EPISODE_TITLE: Heartland,RAW_TITLE: Heartland,FILE: \\storage\volume_1\series\Heartland\Season 2\Heartland S02E18 Step by Step.avi,PROVIDER: tvdb,EPISODE_DATE: 2009-04-14,, id=70598, imdbId=null, metadata=null, providerId=tvdb, score=1.0, title=Heartland, type=TV, url=70598, year=1989] 2010-08-18 17:23:18,019 [Thread-42] INFO sagex.phoenix.metadata.provider.tvdb.TVDBItemParser - TVDB Series: http://www.thetvdb.com/api/5645B594A3F32D27/series/70598/en.xml 2010-08-18 17:23:18,020 [Thread-42] INFO sagex.phoenix.metadata.provider.tvdb.TVDBItemParser - TVDB date: http://thetvdb.com/api/GetEpisodeByAirDate.php?apikey=5645B594A3F32D27&seriesid=70598&airdate=2009-04-14 2010-08-18 17:23:18,021 [Thread-42] INFO sagex.phoenix.util.url.CachedUrl - Removing Cached Url File: cache\url\43638f9fdb98a4ac71834cc81df89e6b.cache 2010-08-18 17:23:18,100 [Thread-42] INFO sagex.phoenix.metadata.provider.tvdb.TVDBItemParser - TVDB Episode: http://www.thetvdb.com/api/5645B594A3F32D27/series/70598/default/-1/-1/en.xml 2010-08-18 17:23:18,250 [Thread-42] WARN sagex.phoenix.metadata.provider.tvdb.TVDBItemParser - Failed to get season/episode specific information for 70598; Season: null; episode: null 2010-08-18 17:23:18,250 [Thread-42] INFO sagex.phoenix.metadata.provider.tvdb.TVDBItemParser - TVDB Title: http://www.thetvdb.com/api/5645B594A3F32D27/series/70598/all/en.xml 2010-08-18 17:23:18,251 [Thread-42] INFO sagex.phoenix.metadata.provider.tvdb.TVDBItemParser - Unable to match a direct title for: Heartland 2010-08-18 17:23:18,252 [Thread-42] WARN sagex.phoenix.metadata.provider.tvdb.TVDBItemParser - Failed while parsing series: MediaSearchResult [extraArgs=CLEAN_TITLE: Heartland,ID: 82701,YEAR: 1989,EPISODE_TITLE: Heartland,RAW_TITLE: Heartland,FILE: \\storage\volume_1\series\Heartland\Season 2\Heartland S02E18 Step by Step.avi,PROVIDER: tvdb,EPISODE_DATE: 2009-04-14,, id=70598, imdbId=null, metadata=null, providerId=tvdb, score=1.0, title=Heartland, type=TV, url=70598, year=1989] java.lang.Exception: Cannot process TV without a valid season; Result: MediaSearchResult [extraArgs=CLEAN_TITLE: Heartland,ID: 82701,YEAR: 1989,EPISODE_TITLE: Heartland,RAW_TITLE: Heartland,FILE: \\storage\volume_1\series\Heartland\Season 2\Heartland S02E18 Step by Step.avi,PROVIDER: tvdb,EPISODE_DATE: 2009-04-14,, id=70598, imdbId=null, metadata=null, providerId=tvdb, score=1.0, title=Heartland, type=TV, url=70598, year=1989] at sagex.phoenix.metadata.provider.tvdb.TVDBItemParser.getMetadata(TVDBItemParser.java:102) at sagex.phoenix.metadata.provider.tvdb.TVDBMetadataProvider.getMetaData(TVDBMetadataProvider.java:27) at sagex.phoenix.metadata.MetadataManager.getMetdata(MetadataManager.java:418) at sagex.phoenix.metadata.MetadataManager.getMetdata(MetadataManager.java:478) at sagex.phoenix.metadata.MetadataManager.automaticUpdate(MetadataManager.java:556) at sagex.phoenix.metadata.MetadataManager.automaticUpdate(MetadataManager.java:526) at sagex.phoenix.metadata.AutomaticMetadataVisitor.visit(AutomaticMetadataVisitor.java:24) at sagex.phoenix.vfs.DecoratedMediaFile.accept(DecoratedMediaFile.java:48) at sagex.phoenix.vfs.DecoratedMediaFolder.accept(DecoratedMediaFolder.java:61) at sagex.phoenix.metadata.PhoenixMetadataSupport$1.run(PhoenixMetadataSupport.java:110) at sagex.phoenix.progress.ProgressTrackerManager$1.run(ProgressTrackerManager.java:48) 2010-08-18 17:23:18,252 [Thread-42] WARN phoenix.log - AutomaticMetadataVisitor(): lookup failed with an error for DecoratedItem: [SageMediaFile [sageId=228060, sageObject=sage.b.p@1ce9085]] MetadataException [file=DecoratedItem: [SageMediaFile [sageId=228060, sageObject=sage.b.p@1ce9085]], ] at sagex.phoenix.metadata.MetadataManager.updateMetadata(MetadataManager.java:492) at sagex.phoenix.metadata.MetadataManager.automaticUpdate(MetadataManager.java:556) at sagex.phoenix.metadata.MetadataManager.automaticUpdate(MetadataManager.java:526) at sagex.phoenix.metadata.AutomaticMetadataVisitor.visit(AutomaticMetadataVisitor.java:24) at sagex.phoenix.vfs.DecoratedMediaFile.accept(DecoratedMediaFile.java:48) at sagex.phoenix.vfs.DecoratedMediaFolder.accept(DecoratedMediaFolder.java:61) at sagex.phoenix.metadata.PhoenixMetadataSupport$1.run(PhoenixMetadataSupport.java:110) at sagex.phoenix.progress.ProgressTrackerManager$1.run(ProgressTrackerManager.java:48) k |
#8
|
||||
|
||||
For some reason, for Hartland, it's not using the season and episode that is in the filename, which is odd. The filename pattern looks correct, but I'll create the file here and do some testing.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#9
|
||||
|
||||
I just tested your filename on my system (updated to 2.0.9), using your MediaTitles.xml and it found the correct the show. Without the MediaTitles.xml it finds a different Heartland show for a different year.
Are you using any custom filename scrapers? Also, remove your cache directory (should be a cache directory in the root of your sagetv home directory)
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#10
|
|||
|
|||
I deleted the cache, uninstalled BMT/Phoenix restarted sage service, reinstalled... and still no luck.
I have no scrapper customizations at all. I really appreciate all the help but this show is not worth it. BMT has worked for all my other shows so far so we should just move on... I can go through each episode in the Web UI and manually search and select the right series and be done with this. Thanks again... great tool. k |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Channel Logos - Where should they be located at? | loomdog32 | SageTV Beta Test Software | 2 | 08-03-2010 07:47 PM |
Transcoded files appears not in the same folder where they are located | krasev | SageTV Software | 0 | 10-22-2009 08:53 AM |
Clean out old metadata created by My Movies before creating new metadata for SageTV? | Texas-Hansen | SageTV Customizations | 0 | 02-12-2009 10:31 AM |
Trying to figure something out... favorites Q... | Hercules | SageTV Software | 15 | 05-20-2004 01:36 PM |
V2 unstable, any way to figure out why? | batorok | SageTV Beta Test Software | 4 | 01-26-2004 04:50 PM |