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 10-20-2012, 11:49 PM
silkshadow's Avatar
silkshadow silkshadow is offline
Sage Expert
 
Join Date: Oct 2004
Location: Philippines
Posts: 550
Help with mediatitles.xml, please?

So I am working with BMT today. I read that BMT doesn't work well with (<year>) for TV show names and I read all the docs on MediaTitles.xml. So I am working with a test case right now "Archer (2009)".

My files are arranged like:

\\<server name>\media\TV\Animated\Archer (2009)\Season 01\Archer (2009) - S01E01 - Mole Hunt.mkv

(import path is \\<server name>\media)

Here is what I tried so far:

1) Manually created MediaTitles.xml and put it in userdata\Phoenix\scrapers\ it looks like this:

Code:
<titles>
  <match>
    <regex>[\\/]Archer (2009)[\\/]</regex>
    <metadata type="TV" name="tvdb">110381</metadata>
  </match>
</titles>
1a) I know there is a refresh option in BMT, but my v5 experience with Sage tells me to just go ahead and restart the service instead.

1b) Then I navigate to the Archer folder via vfs ("Sage Video Imports by folder"). I am looking at folders Season 01, Season 02, Season 03, and Specials.

1c) I hit the update metadata button chose: scan all subfolders and update metadata (only these 2)

1d) A little window opens up on the bottom left, its scanning. When its done I get total failed 37. I click that and it lists out every episode that failed which is all of them.

1e) There are no new properties files created (I have this option enabled). Its just not matching.

2) Try the above again, this time with MediaTitles:

Code:
<titles>
  <match>
    <regex>[\\/]Archer (2009) - S</regex>
    <metadata type="TV" name="tvdb">110381</metadata>
  </match>
</titles>
3) tried it again with:

Code:
<titles>
  <match>
    <regex>[\\/]Archer </regex>
    <metadata type="TV" name="tvdb">110381</metadata>
  </match>
</titles>
4) Then I discovered the "Add matcher" button (man, this program is amazing in its UI detail!). Figured out how it worked. So I deleted my MediaTitles.xml and let BMT generate it. It created:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE titles>

<titles>
  <match>
    <regex>[\\/]Archer (2009) - S</regex>
    <metadata type="TV" name="tvdb">110381</metadata>
  </match>
</titles>
Still not matching.

5) Tried:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE titles>

<titles>
  <match>
    <regex>[\\/]Archer </regex>
    <metadata type="TV" name="tvdb">110381</metadata>
  </match>
</titles>
6) and:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE titles>

<titles>
  <match>
    <regex>[\\/]Archer (2009)[\\/]</regex>
    <metadata type="TV" name="tvdb">110381</metadata>
  </match>
</titles>
Ok, so I've been trying to work this out myself, and searching here, but I am coming up empty. My brain is clearly missing something. Its probably something dumb. Can anyone see what I am doing wrong?

Thanks!

Last edited by silkshadow; 10-21-2012 at 12:09 AM.
Reply With Quote
  #2  
Old 10-21-2012, 08:40 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,712
You've done everything that I would have asked you to do, and then some I'll add a test case for you file name and see what happens in my env. I'll try to get back to you today.
Reply With Quote
  #3  
Old 10-21-2012, 08:55 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,712
So, your first instinct was right

Code:
<titles>
  <match>
    <regex>[\\/]Archer (2009)[\\/]</regex>
    <metadata type="TV" name="tvdb">110381</metadata>
  </match>
</titles>
but... With regex, brackets need to be escaped...

Code:
<titles>
  <match>
    <regex>[\\/]Archer \(2009\)[\\/]</regex>
    <metadata type="TV" name="tvdb">110381</metadata>
  </match>
</titles>
Of course, that also means there's a bug in the BMT media titles generator, since it didn't escape the brackets for you either
Reply With Quote
  #4  
Old 10-21-2012, 10:58 AM
silkshadow's Avatar
silkshadow silkshadow is offline
Sage Expert
 
Join Date: Oct 2004
Location: Philippines
Posts: 550
Thank you again, so much! I knew my brain was missing something dumb . I know you've heard it a lot (I read it many times today searching this forum), but your work on this plug in is nothing short of amazing. The detail is incredible. Thank you for BMT!
Reply With Quote
  #5  
Old 10-21-2012, 11:34 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,712
Quote:
Originally Posted by silkshadow View Post
Thank you again, so much! I knew my brain was missing something dumb . I know you've heard it a lot (I read it many times today searching this forum), but your work on this plug in is nothing short of amazing. The detail is incredible. Thank you for BMT!
Thanks. You've been away for awhile... but BMT has come a long way from its humble command line beginnings
Reply With Quote
  #6  
Old 10-22-2012, 08:26 AM
silkshadow's Avatar
silkshadow silkshadow is offline
Sage Expert
 
Join Date: Oct 2004
Location: Philippines
Posts: 550
Quote:
Originally Posted by stuckless View Post
Thanks. You've been away for awhile... but BMT has come a long way from its humble command line beginnings
That is an understatement .
Reply With Quote
Reply


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
MediaTitles not Working wmstonetn Batch Metadata Tools 9 07-08-2015 02:15 AM
MediaTitles.xml and how to read it razrsharpe Batch Metadata Tools 28 01-22-2011 07:57 AM
MediaTitles.xml failed, how do I see what went wrong? davidk21770 Batch Metadata Tools 5 09-28-2010 11:47 AM
Quick MediaTitles.xml question davidk21770 Batch Metadata Tools 3 09-24-2010 01:48 PM
Problem with MediaTitles.xml cmaloney Batch Metadata Tools 12 08-17-2010 07:44 PM


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


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