SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations > Batch Metadata Tools

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 03-08-2011, 10:23 PM
jbmia jbmia is offline
Sage User
 
Join Date: Apr 2009
Posts: 73
Unhappy File Renaming and Rescanning...

So, I went down the MediaTitles.xml route and spun out a few hours without much success... Here's an example:

I tried these variants...

<file><regex>[\\/]Magnum</regex>
<file><regex>[\\/]Magnum.-</regex>
<file><regex>[\\/]Magnum*</regex>

on this rule...

<match>
<file><regex>[\\/]Magnum</regex>
<title>Magnum, P.I. </title>
<metadata type="tv" name="tvdb"74380</metadata>
</match>

and this file:
/mnt/samba/Videos/Magnum.P.I.S01.DVDRip.XViD-uDF/magnum.p.i.0116.dvdrip.xvid-udf.avi

Didn't having any success getting the metadata picked using this method, so I went at it from a batch file renaming approach... thinking that if I can get the files / folders named with the proper syntax I can solve the challenge from that angle...

So I named the above file, to this:
"Magnum PI - S01E16 - Dvdrip Xvid-udf.Avi"

but, as evidenced in the BMT details for this file, SageTV wants to keep it named the original name: "magnum.p.i.0116.dvdrip.xvid-udf.avi" instead of picking up the new renamed file name (above) that is now displayed in file manager.

Oddly, the file will still play in SageTV even though it has a completely different name now... which seems indicative that SageTV is tracking the file with some other identifier...

Anywho, I'd really appreciate some advice here.. I've spent about 5 hours here trying to put together an automated process that will prevent downstream tedium... unfortunately, it's slow going and fruitless... I prefer the MediaTitles.xml route since an effective script there is less time consuming than the file renaming, but either of those is immensely better than manually going through that effort of individually going through each one and "update metadata".. changing them from movie to TV, retyping the title properly, searching.. tell me it needs a season and episode and so on and so...

(btw, if it's not clear these are imported, not recorded)

Any assistance/direction would be greatly appreciated...

delirious,

jbmia

Last edited by jbmia; 03-09-2011 at 06:58 AM. Reason: grammar correction
Reply With Quote
  #2  
Old 03-09-2011, 08:19 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,541
Quote:
Originally Posted by jbmia View Post
So, I went down the MediaTitles.xml route and spun out a few hours without much success... Here's an example:

I tried these variants...

<file><regex>[\\/]Magnum</regex>
<file><regex>[\\/]Magnum.-</regex>
<file><regex>[\\/]Magnum*</regex>

on this rule...

<match>
<file><regex>[\\/]Magnum</regex>
<title>Magnum, P.I. </title>
<metadata type="tv" name="tvdb"74380</metadata>
</match>

and this file:
/mnt/samba/Videos/Magnum.P.I.S01.DVDRip.XViD-uDF/magnum.p.i.0116.dvdrip.xvid-udf.avi

Didn't having any success getting the metadata picked using this method, so I went at it from a batch file renaming approach... thinking that if I can get the files / folders named with the proper syntax I can solve the challenge from that angle...

So I named the above file, to this:
"Magnum PI - S01E16 - Dvdrip Xvid-udf.Avi"

but, as evidenced in the BMT details for this file, SageTV wants to keep it named the original name: "magnum.p.i.0116.dvdrip.xvid-udf.avi" instead of picking up the new renamed file name (above) that is now displayed in file manager.

Oddly, the file will still play in SageTV even though it has a completely different name now... which seems indicative that SageTV is tracking the file with some other identifier...

Anywho, I'd really appreciate some advice here.. I've spent about 5 hours here trying to put together an automated process that will prevent downstream tedium... unfortunately, it's slow going and fruitless... I prefer the MediaTitles.xml route since an effective script there is less time consuming than the file renaming, but either of those is immensely better than manually going through that effort of individually going through each one and "update metadata".. changing them from movie to TV, retyping the title properly, searching.. tell me it needs a season and episode and so on and so...

(btw, if it's not clear these are imported, not recorded)

Any assistance/direction would be greatly appreciated...

delirious,

jbmia
You xml is not valid... i'm not sure where you copied your example from, but you have a <file> tag in there?? (and the metadata tag wasn't properly closed)

try this...

Code:
<match>
               	<regex>[\\/]Magnum</regex>
                <title>Magnum, P.I. </title>
                <metadata type="tv" name="tvdb">74380</metadata>
</match>
Reload the mediatitles (via the web ui; Configuraion -> Reload Configurations)

I also recently updated the MediaTitles section of the user guide, to include a complete example. BTW, when editing Xml files, it would be beneficial to use an Xml validating editor. YOu issues seem to come from the fact that your xml entry wasn't valid xml. I don't know of any Xml editors for windows, but perhaps people could suggest one.

Sean.

Last edited by stuckless; 03-09-2011 at 08:21 AM.
Reply With Quote
  #3  
Old 03-09-2011, 09:33 AM
jbmia jbmia is offline
Sage User
 
Join Date: Apr 2009
Posts: 73
Thanks for the help!

I changed my rule to this:
HTML Code:
<titles>
        <!--
	A Match can contain a regex that will be used to match against the path$
        then set the fields, title, year, or id, into the search query.
        -->
	<match>
               	<regex>[\\/]Tom.*</regex>
                <title>Tom and Jerry</title>
                <year>1940</year>
                <metadata type="tv" name="tvdb">72860</metadata>
         </match>

        <match>
               	<regex>[\\/]Magnum</regex>
                <title>Magnum, P.I. </title>
                <metadata type="tv" name="tvdb">74380</metadata>
        </match>
</titles>
but I'm still not getting this file picked up:
HTML Code:
/mnt/samba/Videos/Magnum.P.I.S01/magnum.p.i.0110.dvdrip.xvid-udf.avi
Any suggestions? Should "Magnum" be "magnum" or "Magnum*"
The first rule, for Tom & Jerry, doesn't seem to work either.. I'm having a hard time understanding how to write these regex arguments so the files are properly picked up and evaluated...

Another quick question:
I've deleted some video files from my share... deleted them from a file manager, not from within SageTV. The challenge I'm having is, they've dissappeared from SageTV, but they're not flushing out of the BTM database... They still show when I run a search from within BMT... What do I need to do to flush these old entries from BMT?

Thanks again.

jbmia

Last edited by jbmia; 03-09-2011 at 09:37 AM.
Reply With Quote
  #4  
Old 03-09-2011, 10:35 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,541
Quote:
Originally Posted by jbmia View Post
Thanks for the help!

I changed my rule to this:
HTML Code:
<titles>
        <!--
	A Match can contain a regex that will be used to match against the path$
        then set the fields, title, year, or id, into the search query.
        -->
	<match>
               	<regex>[\\/]Tom.*</regex>
                <title>Tom and Jerry</title>
                <year>1940</year>
                <metadata type="tv" name="tvdb">72860</metadata>
         </match>

        <match>
               	<regex>[\\/]Magnum</regex>
                <title>Magnum, P.I. </title>
                <metadata type="tv" name="tvdb">74380</metadata>
        </match>
</titles>
but I'm still not getting this file picked up:
HTML Code:
/mnt/samba/Videos/Magnum.P.I.S01/magnum.p.i.0110.dvdrip.xvid-udf.avi
Any suggestions? Should "Magnum" be "magnum" or "Magnum*"
The first rule, for Tom & Jerry, doesn't seem to work either.. I'm having a hard time understanding how to write these regex arguments so the files are properly picked up and evaluated...

Another quick question:
I've deleted some video files from my share... deleted them from a file manager, not from within SageTV. The challenge I'm having is, they've dissappeared from SageTV, but they're not flushing out of the BTM database... They still show when I run a search from within BMT... What do I need to do to flush these old entries from BMT?

Thanks again.

jbmia
It may not be apparent, but when you are matching, you are matching against a file path. So if your file is magnum then you'll need to use magnum and not Magnum. (ie case does matter, although I should probably change that to do case insensitive matching, but I live in an OS where 'magnum' is not the same as 'Magnum', or I never really think about it )

BMT does not have it's own database. It querries its information from the sagetv database on the fly. If you have deleted them from sagetv, then you'll need to tell sagetv to refresh it's library to reflect the missing files. (You can use the "refresh" action on the bmt web ui toolbar)
Reply With Quote
  #5  
Old 03-09-2011, 12:31 PM
jbmia jbmia is offline
Sage User
 
Join Date: Apr 2009
Posts: 73
LOL... I should know that.. I'm typing this from within Ubuntu right now.. I'll give the MediaTitles.xml a whirl with that in mind...

I think I've got something wrong with the database reads... "refresh library" is not updating anything.. my understanding is that it only checks for "new" files anyway... but regardless, it's not updating in BMT..

For example, I have this file listed in BMT, but it doesn't exist any longer in the actual folder and the folder is no longer defined in the SageTV media import directories.. and I've already run a rescan:

"/mnt/samba/Videos/Magnum.P.I.S01.DVDRip.XViD-uDF/magnum.p.i.0102.dvdrip.xvid-udf.avi"

What am I doing wrong?

jbmia
Reply With Quote
  #6  
Old 03-09-2011, 12:56 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,541
Quote:
Originally Posted by jbmia View Post
LOL... I should know that.. I'm typing this from within Ubuntu right now.. I'll give the MediaTitles.xml a whirl with that in mind...

I think I've got something wrong with the database reads... "refresh library" is not updating anything.. my understanding is that it only checks for "new" files anyway... but regardless, it's not updating in BMT..

For example, I have this file listed in BMT, but it doesn't exist any longer in the actual folder and the folder is no longer defined in the SageTV media import directories.. and I've already run a rescan:

"/mnt/samba/Videos/Magnum.P.I.S01.DVDRip.XViD-uDF/magnum.p.i.0102.dvdrip.xvid-udf.avi"

What am I doing wrong?

jbmia
You could do a quick restart of the sagetv service and see if the data disappears on a restart. Perhaps bmt is caching the data... but I didn't think so.
Reply With Quote
  #7  
Old 03-09-2011, 03:12 PM
jbmia jbmia is offline
Sage User
 
Join Date: Apr 2009
Posts: 73
So.. I'm running the linux version on Amahi... the process I've followed is:

- remove the imported shares
-- /mnt/samba/videos
-- /mnt/samba/movies
- stop the sage server (/opt/sagetv/server/stopsage)
- deleted the files in the shares...
- restart the sagetv server
- readd the imported shares

Yet, BMT still shows the files when I do a search, even though the files no longer appear in SageTV... to be more specific.. I'm doing a "search" for "magnum" and the files I've deleted from the share are still displaying...

I even deleted the wiz.bin file (took a backup) and the files still show in BMT...

So, the data is DEFINITELY being stored somewhere... Given that, what do you think??

jbmia
Reply With Quote
  #8  
Old 03-10-2011, 07:34 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,541
Quote:
Originally Posted by jbmia View Post
So.. I'm running the linux version on Amahi... the process I've followed is:

- remove the imported shares
-- /mnt/samba/videos
-- /mnt/samba/movies
- stop the sage server (/opt/sagetv/server/stopsage)
- deleted the files in the shares...
- restart the sagetv server
- readd the imported shares

Yet, BMT still shows the files when I do a search, even though the files no longer appear in SageTV... to be more specific.. I'm doing a "search" for "magnum" and the files I've deleted from the share are still displaying...

I even deleted the wiz.bin file (took a backup) and the files still show in BMT...

So, the data is DEFINITELY being stored somewhere... Given that, what do you think??

jbmia
Well, given that bmt doesn't have it's own store, and it reads directly from the wiz.bin using the sagetv apis... i'd have to say that either the data is still in the wiz.bin... or your browser is caching the pages. Maybe try using another browser or try clearing caches to see if that helps. Even if bmt was caching data (which I don't think it does), a sever restart would definately clear that out.

I add/remove sources all the time on my dev setup, and I've never seen this issue.
Reply With Quote
  #9  
Old 03-10-2011, 11:44 AM
jbmia jbmia is offline
Sage User
 
Join Date: Apr 2009
Posts: 73
Wow.. as crazy as that sounded, that's appears to be have been the issue... I'm using Google Chrome (Ubuntu)... I flushed the cache and it cleared out the old data that was confusing things.. Wouldn't have expected for the browser to pull up local cache data when I'm running a search on a folder on a completely different machine.. Go figure.

The file renaming appears to be working and the tips you provided on MediaTitles.xml paid off.. Many thanks for your assistance!

Also, I may have overlooked something, but is there some documentation you'd recommend I study that provides more details on the syntax for the MediaTitles.xml rules?

Thanks again for helping me through this!

jbmia
Reply With Quote
  #10  
Old 03-10-2011, 12:05 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,541
Quote:
Originally Posted by jbmia View Post
Wow.. as crazy as that sounded, that's appears to be have been the issue... I'm using Google Chrome (Ubuntu)... I flushed the cache and it cleared out the old data that was confusing things.. Wouldn't have expected for the browser to pull up local cache data when I'm running a search on a folder on a completely different machine.. Go figure.

The file renaming appears to be working and the tips you provided on MediaTitles.xml paid off.. Many thanks for your assistance!

Also, I may have overlooked something, but is there some documentation you'd recommend I study that provides more details on the syntax for the MediaTitles.xml rules?

Thanks again for helping me through this!

jbmia
I've updated the user guide to include samples for the media titles. Really, once you understand regex portion, it's not that hard... you are just mapping file patterns to tvdb ids. (I think there is a link to some regex guide in the user guide as well, but for the most part, the samples should show how you map recordings)
Reply With Quote
  #11  
Old 03-10-2011, 06:02 PM
Spectrum Spectrum is offline
Sage Expert
 
Join Date: Aug 2006
Posts: 720
Stuckless, since BMT seems to have an issue with caching (something I've hit in the past as well) have you looked at any server side instructions to prevent browsers from caching?

Something as simple as
Code:
<META http-equiv="Pragma" content="no-cache">
in the head section might be enough.

Just curious if it's something you have looked into.
Reply With Quote
  #12  
Old 03-11-2011, 01:18 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,541
Quote:
Originally Posted by Spectrum View Post
Stuckless, since BMT seems to have an issue with caching (something I've hit in the past as well) have you looked at any server side instructions to prevent browsers from caching?

Something as simple as
Code:
<META http-equiv="Pragma" content="no-cache">
in the head section might be enough.

Just curious if it's something you have looked into.
I could certainly add that into the entrypoint page (there is only one html page for bmt). But once that small page is loaded, everything else happens over XHR... and I'm using GWT, so, I'm basically writing everything in java. I'm not sure how much control I have over the cashing in their protocol. Personally, I've never seen the issue of bmt caching anything beyond the user's session (ie, close a browser and the cache is cleared). I typically use Chrome, but I also run it under FF from time to time as well. I never run it under IE, because I would have to fire up a vmware session for that.
Reply With Quote
  #13  
Old 03-11-2011, 02:58 PM
Spectrum Spectrum is offline
Sage Expert
 
Join Date: Aug 2006
Posts: 720
Ahh XHR and GWT. Never walked that path so I have no idea if they pay any attention to the meta tags. It may or may not (more likely not) prevent caching. Isn't IE that thing you use to download Firefox on a fresh install?
Reply With Quote
  #14  
Old 03-11-2011, 03:37 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,541
Quote:
Originally Posted by Spectrum View Post
Ahh XHR and GWT. Never walked that path so I have no idea if they pay any attention to the meta tags. It may or may not (more likely not) prevent caching. Isn't IE that thing you use to download Firefox on a fresh install?
No, I use the synaptic package manager for that... I've never seen IE on a fresh install
Reply With Quote
  #15  
Old 03-13-2011, 07:49 AM
graywolf's Avatar
graywolf graywolf is online now
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,176
OK. Not seeing the error.

C:\SageTV\SageTV\userdata\Phoenix\scrapers\MediaTitles.xml
Code:
<titles>
    <match>
        <regex>[\\/]DoctorWho-.*[\\/]</regex>
        <metadata type="tv" name="tvdb">78804</metadata>
    </match>
</titles>
For some reason, It does not appear to be catching/using the MediaTitles.xml or I don't understand quite how to use it.

Attached are the log files. They keep wanting to use the 1963 series, not the 2005 series which I am trying to point to in the MediaTitles.xml
Attached Files
File Type: txt phoenix.log.txt (86.1 KB, 153 views)
File Type: txt phoenix-metadata.log.txt (6.4 KB, 139 views)

Last edited by graywolf; 03-13-2011 at 07:54 AM.
Reply With Quote
  #16  
Old 03-13-2011, 08:56 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
Quote:
Originally Posted by graywolf View Post
OK. Not seeing the error.

C:\SageTV\SageTV\userdata\Phoenix\scrapers\MediaTitles.xml
Code:
<titles>
    <match>
        <regex>[\\/]DoctorWho-.*[\\/]</regex>
        <metadata type="tv" name="tvdb">78804</metadata>
    </match>
</titles>
For some reason, It does not appear to be catching/using the MediaTitles.xml or I don't understand quite how to use it.

Attached are the log files. They keep wanting to use the 1963 series, not the 2005 series which I am trying to point to in the MediaTitles.xml
When BMT uses the MediaTitles, it will test the ENTIRE path of the media file against the regular expression that is provided, and the regular expression behaves like a contains search on the path. So, it is not just testing the filename, but rather the file path, including the parent directories, etc. So in this case you are trying to force every thing that is in a folder called DoctorWho-.* (If that works for folders) In this case, instead of using a <title> element, you’ve used a <metadata> element and you’ve given it the metadata provider, tvdb, and the series id on tvdb for the original Doctor Who series which has a series id of 78804. So, in this example, you're forcing everything that has a folder in it's path of \DoctorWho-.*\ (not sure if that works.) in it’s path to use tvdb series id 78804.

If you are just trying to get it to match the title this would work:
<match>
<regex>[\\/]DoctorWho </regex>
<title>Doctor Who</title>
</match>
This would fix the title. If you are trying to correct for a particular year of Doctor Who you would use this:

<match>
<regex>[\\/]DrWho-.*</regex>
<title>Dr. Who</title>
<year>2009</year>
<metadata type="tv" name="tvdb">78804</metadata>
</match>


I think.

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.

Last edited by gplasky; 03-13-2011 at 09:01 AM.
Reply With Quote
  #17  
Old 03-13-2011, 10:15 AM
graywolf's Avatar
graywolf graywolf is online now
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,176
Still NO JOY.

C:\SageTV\SageTV\userdata\Phoenix\scrapers\MediaTitles.xml

Code:
<titles>
    <match>
        <regex>[\\/]DoctorWho[\\/]</regex>
        <title>Doctor Who (2005)</title>
        <year>2005</year>
        <metadata type="tv" name="tvdb">78804</metadata>
    </match>
</titles>
Tried it with the above.
DoubleChecked case sensitivity, the ID from thetvdb for Doctor Who (2005) which is 78804. The ID for the original Doctor Who from 1963 is 76107.


One of the file path/names is: \\TOWER\Specials\999-Testing\DoctorWho-TheEleventhHour-1455755-0.mpg

getting the following from the

Code:
2011-03-13 12:08:23,358 [Timer-8] INFO  sagex.phoenix.metadata.search.TVScraperManager - Scraper title-sageRecording created a query: SearchQuery [type=TV, fields={EPISODE_TITLE: The Eleventh Hour,RAW_TITLE: Doctor Who,}, hints=Hints [hints={update_fanart: true,update_metadata: true,scan_missing_metadata: true,scan_subfolders: true,known_recording: false,import_tv_as_recording: true,auto: true,}]] for file SageMediaFile [sageId=24266, sageObject=MediaFile[id=24266 A[24269,24267,"DoctorWho-TheEleventhHour-1455755-0",0@1005.16:07,71] mask=V host=Graywolf-laptop encodedBy= format=MPEG2-PS 1:11:58 1048 kbps [#0 Video[MPEG2-Video 29.97003 fps 720x480 4:3 interlaced id=e0]#1 Audio[MP2 48000 Hz 2 channels 384 kbps MAIN idx=1 id=c0]] \\TOWER\Specials\999-Testing\DoctorWho-TheEleventhHour-1455755-0.mpg, Seg0[Tue 10/5 16:07:20.210-Tue 10/5 17:19:19.000]]] with hints Hints [hints={update_metadata: true,update_fanart: true,scan_missing_metadata: true,known_recording: false,scan_subfolders: true,import_tv_as_recording: true,auto: true,}]
2011-03-13 12:08:23,362 [Timer-8] INFO  sagex.phoenix.metadata.search.SearchQueryFactory - Created Search Query: SearchQuery [type=TV, fields={EPISODE_DATE: 2010-10-05,FILE: \\TOWER\Specials\999-Testing\DoctorWho-TheEleventhHour-1455755-0.mpg,CLEAN_TITLE: Doctor Who,EPISODE_TITLE: The Eleventh Hour,RAW_TITLE: Doctor Who,}, hints=Hints [hints={update_fanart: true,update_metadata: true,scan_missing_metadata: true,scan_subfolders: true,known_recording: false,import_tv_as_recording: true,auto: true,}]]
2011-03-13 12:08:23,362 [Timer-8] INFO  sagex.phoenix.metadata.MetadataManager - search(): tvdb; SearchQuery [type=TV, fields={EPISODE_DATE: 2010-10-05,FILE: \\TOWER\Specials\999-Testing\DoctorWho-TheEleventhHour-1455755-0.mpg,CLEAN_TITLE: Doctor Who,EPISODE_TITLE: The Eleventh Hour,RAW_TITLE: Doctor Who,}, hints=Hints [hints={update_fanart: true,update_metadata: true,scan_missing_metadata: true,scan_subfolders: true,known_recording: false,import_tv_as_recording: true,auto: true,}]]
2011-03-13 12:08:23,363 [Timer-8] INFO  sagex.phoenix.metadata.MetadataManager - Searching: Doctor Who using TVDBMetadataProvider[MetadataProviderInfo [id=tvdb, fanartId=null, mediaTypes=[TV], name=thetvdb.com]]
2011-03-13 12:08:23,368 [Timer-8] INFO  sagex.phoenix.metadata.provider.tvdb.TVDBSearchParser - TVDB Search: http://www.thetvdb.com/api/GetSeries.php?seriesname=Doctor+Who
2011-03-13 12:08:23,369 [Timer-8] INFO  sagex.phoenix.util.url.CachedUrlFactory - Caching URL Factory in use.
2011-03-13 12:08:23,681 [Timer-8] WARN  sagex.phoenix.metadata.search.MetadataSearchUtil - The year was not passed in the query: SearchQuery [type=TV, fields={QUERY: Doctor Who,EPISODE_DATE: 2010-10-05,FILE: \\TOWER\Specials\999-Testing\DoctorWho-TheEleventhHour-1455755-0.mpg,CLEAN_TITLE: Doctor Who,EPISODE_TITLE: The Eleventh Hour,RAW_TITLE: Doctor Who,}, hints=Hints [hints={update_fanart: true,update_metadata: true,scan_missing_metadata: true,scan_subfolders: true,known_recording: false,import_tv_as_recording: true,auto: true,}]] we are returning the first good result.  Consider adding the year to the query for better matches.
2011-03-13 12:08:23,681 [Timer-8] INFO  sagex.phoenix.metadata.MetadataManager - Fetching Metadata for MediaSearchResult [extraArgs={CLEAN_TITLE: Doctor Who,EPISODE_TITLE: The Eleventh Hour,RAW_TITLE: Doctor Who,FILE: \\TOWER\Specials\999-Testing\DoctorWho-TheEleventhHour-1455755-0.mpg,EPISODE_DATE: 2010-10-05,}, id=76107, imdbId=null, metadata=null, providerId=tvdb, score=1.0, title=Doctor Who, type=TV, url=76107, year=1963]
2011-03-13 12:08:23,691 [Timer-8] INFO  sagex.phoenix.metadata.provider.tvdb.TVDBSeriesParser - TVDB Series: http://www.thetvdb.com/api/5645B594A3F32D27/series/76107/en.xml
2011-03-13 12:08:23,848 [Timer-8] INFO  sagex.phoenix.metadata.provider.tvdb.TVDBSeriesParser - TVDB Actors: http://www.thetvdb.com/api/5645B594A3F32D27/series/76107/actors.xml
2011-03-13 12:08:24,314 [Timer-8] INFO  sagex.phoenix.metadata.provider.tvdb.TVDBItemParser - TVDB date: http://thetvdb.com/api/GetEpisodeByAirDate.php?apikey=5645B594A3F32D27&seriesid=76107&airdate=2010-10-05
2011-03-13 12:08:24,551 [Timer-8] WARN  sagex.phoenix.metadata.provider.tvdb.TVDBItemParser - Can't do lookup by season/epsidoe for season: null; episode: null
2011-03-13 12:08:24,551 [Timer-8] INFO  sagex.phoenix.metadata.provider.tvdb.TVDBItemParser - TVDB Title: http://www.thetvdb.com/api/5645B594A3F32D27/series/76107/all/en.xml
2011-03-13 12:08:39,526 [Timer-8] INFO  sagex.phoenix.metadata.provider.tvdb.TVDBItemParser - Unable to match a direct title for: The Eleventh Hour
2011-03-13 12:08:39,528 [Timer-8] WARN  phoenix.log - ERROR; \\TOWER\Specials\999-Testing\DoctorWho-TheEleventhHour-1455755-0.mpg; DoctorWho-TheEleventhHour-1455755-0; 24266; Failed while parsing series: MediaSearchResult [extraArgs={CLEAN_TITLE: Doctor Who,EPISODE_TITLE: The Eleventh Hour,RAW_TITLE: Doctor Who,FILE: \\TOWER\Specials\999-Testing\DoctorWho-TheEleventhHour-1455755-0.mpg,EPISODE_DATE: 2010-10-05,}, id=76107, imdbId=null, metadata=null, providerId=tvdb, score=1.0, title=Doctor Who, type=TV, url=76107, year=1963]
MetadataException []
	at sagex.phoenix.metadata.provider.tvdb.TVDBItemParser.getMetadata(TVDBItemParser.java:118)
	at sagex.phoenix.metadata.provider.tvdb.TVDBMetadataProvider.getMetaData(TVDBMetadataProvider.java:33)
	at sagex.phoenix.metadata.MetadataManager.getMetdata(MetadataManager.java:317)
	at sagex.phoenix.metadata.MetadataManager.getMetdata(MetadataManager.java:381)
	at sagex.phoenix.metadata.MetadataManager.automaticUpdate(MetadataManager.java:473)
	at sagex.phoenix.metadata.MetadataManager.automaticUpdate(MetadataManager.java:443)
	at sagex.phoenix.plugin.PhoenixPlugin.updateMetadata(PhoenixPlugin.java:175)
	at sagex.phoenix.plugin.PhoenixPlugin.mediaFileImported(PhoenixPlugin.java:148)
	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 sagex.plugin.AbstractPlugin$1.run(AbstractPlugin.java:254)
	at java.util.TimerThread.mainLoop(Unknown Source)
	at java.util.TimerThread.run(Unknown Source)
Caused by: java.lang.Exception: Cannot process TV without a valid season/episod; Result: MediaSearchResult [extraArgs={CLEAN_TITLE: Doctor Who,EPISODE_TITLE: The Eleventh Hour,RAW_TITLE: Doctor Who,FILE: \\TOWER\Specials\999-Testing\DoctorWho-TheEleventhHour-1455755-0.mpg,EPISODE_DATE: 2010-10-05,}, id=76107, imdbId=null, metadata=null, providerId=tvdb, score=1.0, title=Doctor Who, type=TV, url=76107, year=1963]
	at sagex.phoenix.metadata.provider.tvdb.TVDBItemParser.getMetadata(TVDBItemParser.java:99)
	... 14 more

Code:
2011-03-13 12:08:23,348 - AUTO; MEDIA; \\TOWER\Specials\999-Testing\DoctorWho-TheEleventhHour-1455755-0.mpg; DoctorWho-TheEleventhHour-1455755-0; 24266
2011-03-13 12:08:39,527 - ERROR; \\TOWER\Specials\999-Testing\DoctorWho-TheEleventhHour-1455755-0.mpg; DoctorWho-TheEleventhHour-1455755-0; 24266; Failed while parsing series: MediaSearchResult [extraArgs={CLEAN_TITLE: Doctor Who,EPISODE_TITLE: The Eleventh Hour,RAW_TITLE: Doctor Who,FILE: \\TOWER\Specials\999-Testing\DoctorWho-TheEleventhHour-1455755-0.mpg,EPISODE_DATE: 2010-10-05,}, id=76107, imdbId=null, metadata=null, providerId=tvdb, score=1.0, title=Doctor Who, type=TV, url=76107, year=1963]
Reply With Quote
  #18  
Old 03-14-2011, 07:34 AM
graywolf's Avatar
graywolf graywolf is online now
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,176
Not sure what I did different, but it is working now.

<match>
<regex>[\\/]DoctorWho-.*</regex>
<title>Doctor Who (2005)</title>
<year>2005</year>
<metadata type="tv" name="tvdb">78804</metadata>
</match>

Really liking the results in my testing.
Great Job.
Reply With Quote
  #19  
Old 03-14-2011, 07:44 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,541
Quote:
Originally Posted by graywolf View Post
Not sure what I did different, but it is working now.

<match>
<regex>[\\/]DoctorWho-.*</regex>
<title>Doctor Who (2005)</title>
<year>2005</year>
<metadata type="tv" name="tvdb">78804</metadata>
</match>

Really liking the results in my testing.
Great Job.
You got rid of the trailing directory separator ([\\/]) which now finds all files that are Doctor Who instead of all Directories that are Doctor Who ( as per Gerry's note)
Reply With Quote
  #20  
Old 03-14-2011, 08:17 AM
graywolf's Avatar
graywolf graywolf is online now
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,176
D'oh. At least I'll learn from this and at least won't make that same mistake.
Reply With Quote
Reply

Tags
bmt, metadata, rename


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Rescanning Media Content question jchisholm SageTV Beta Test Software 0 09-10-2010 05:49 AM
HVR-2250 is rescanning the second tuner nessary? blueroom Hardware Support 4 06-08-2009 04:19 PM
renaming recordings stevech SageTV Software 4 04-03-2006 11:45 AM
Rescanning import folders doesn't work Wheemer SageTV Beta Test Software 19 08-14-2005 01:11 AM
Renaming Files Cabalsan SageTV Customizations 2 05-16-2004 10:25 PM


All times are GMT -6. The time now is 03:24 PM.


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