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 06-17-2013, 09:04 AM
damonbrodie damonbrodie is offline
Sage User
 
Join Date: May 2011
Location: Ottawa, Canada
Posts: 32
Capitals in filenames

Hi,

I have a bunch of filenames that have capitals in them "MythBusters" which happens to match the way the show is named on thetvdb.com

I checked the logs and when it searches thetvdb, it is searching for Myth+Busters, which is returning no results. I guess BMT is splitting words based on capitals.

I'm trying to figure out how to add a matcher based on the filename (The filenames are named MythBusters sXXeYY.mkv:

<titles>
<match>
<regex>[\\/]MythBusters*</regex>
<title>MythBusters</title>
<metadata type="TV" name="tvdb">73388</metadata>
</match>
</titles>

I think I did this right, but I'm not sure - it still isn't matching.

I have a few questions:

1) If I add to the xml directly, do I have to stop/start anything?
2) If I use the "Add Matcher" button do I just need to signal Sage to go look for media again?

Are there any other steps I am missing to make this matcher work?
__________________
-Win 7 server, 2 Colossus capture cards with two Cisco 4250 STBs, USB-Uirt, many storage drives
-two SageTV clients
-three HD300s

Last edited by damonbrodie; 06-17-2013 at 09:31 AM. Reason: typos
Reply With Quote
  #2  
Old 06-17-2013, 09:40 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by damonbrodie View Post
Hi,

I have a bunch of filenames that have capitals in them "MythBusters" which happens to match the way the show is named on thetvdb.com

I checked the logs and when it searches thetvdb, it is searching for Myth+Busters, which is returning no results. I guess BMT is splitting words based on capitals.

I'm trying to figure out how to add a matcher based on the filename (The filenames are named MythBusters sXXeYY.mkv:

Code:
<titles>
  <match>
    <regex>[\\/]MythBusters*</regex>
	<title>MythBusters</title>
    <metadata type="TV" name="tvdb">73388</metadata>
  </match>
</titles>
I think I did this right, but I'm not sure - it still isn't matching.

I have a few questions:

1) If I add to the xml directly, do I have to stop/start anything?
2) If I use the "Add Matcher" button do I just need to signal Sage to go look for media again?

Are there any other steps I am missing to make this matcher work?
The matcher looks fine. But, if you do this manually, you need to make sure the matcher is called MediaTitles.xml and it's in the userdata/Phoenix/scrapers/ directory. And then you need to start/stop the sage tv server.

Using the "Add Matcher" is a better approach, since it will do all that for your. When you add a matcher in this way, you don't need to start/stop the server, but you will need to re-scan other files.

The reason why the mixed case caused an issue is because normal Recordings are mixed case, the searcher needs to "expand" them in order to search. ie, "TheFollowing" needs to become "The Following". And this of course has the side effect of causing issue for names like MythBusters
Reply With Quote
  #3  
Old 06-17-2013, 09:47 AM
damonbrodie damonbrodie is offline
Sage User
 
Join Date: May 2011
Location: Ottawa, Canada
Posts: 32
Quote:
Originally Posted by stuckless View Post
The matcher looks fine. But, if you do this manually, you need to make sure the matcher is called MediaTitles.xml and it's in the userdata/Phoenix/scrapers/ directory. And then you need to start/stop the sage tv server.

Using the "Add Matcher" is a better approach, since it will do all that for your. When you add a matcher in this way, you don't need to start/stop the server, but you will need to re-scan other files.

The reason why the mixed case caused an issue is because normal Recordings are mixed case, the searcher needs to "expand" them in order to search. ie, "TheFollowing" needs to become "The Following". And this of course has the side effect of causing issue for names like MythBusters
Thanks for the reply. I did put the matcher in through the UI first, but wasn't sure if I was doing it right. I then found the Mediatitles in userdata/Phoenix/scrapers, and started editing that manually. So it appears I have everything set correctly, but it still isn't matching. does the regex apply to both the directory and the filename? (All my recordings are in a flat directory structure).
__________________
-Win 7 server, 2 Colossus capture cards with two Cisco 4250 STBs, USB-Uirt, many storage drives
-two SageTV clients
-three HD300s
Reply With Quote
  #4  
Old 06-17-2013, 10:11 AM
damonbrodie damonbrodie is offline
Sage User
 
Join Date: May 2011
Location: Ottawa, Canada
Posts: 32
Here is the output of the logs:

2013-06-17 12:09:36,134 [8492978@qtp-8426363-5] WARN phoenix.impl.MediaAPI - Invalid year for Movie, so ignoring Title Mask for DecoratedItem: [SageMediaFile [sageId=51145, sageObject=MediaFile[id=51145 A[51148,51146,"MythBusters s01e06",0@0617.06:10,49] mask=V host=PVR-Server encodedBy= format=AVI 0:49:30 988 kbps [#0 Video[MPEG4-Video 25.0 fps 624x352 39:22 progressive]#1 Audio[MP3 48000 Hz 2 channels 128 kbps idx=1]] G:\Sage\MythBusters s01e06.avi, Seg0[Mon 6/17 6:10:33.647-Mon 6/17 7:00:04.607]]]]
2013-06-17 12:09:36,134 [8492978@qtp-8426363-5] WARN sagex.phoenix.metadata.persistence.TVSeriesUtil - Unable to create a SeriesInfoID for :
2013-06-17 12:09:36,134 [8492978@qtp-8426363-5] WARN phoenix.impl.MediaAPI - Invalid year for Movie, so ignoring Title Mask for DecoratedItem: [SageMediaFile [sageId=51149, sageObject=MediaFile[id=51149 A[51152,51150,"MythBusters s01e07",0@0617.06:10,49] mask=V host=PVR-Server encodedBy= format=AVI 0:49:32 984 kbps [#0 Video[MPEG4-Video 29.97 fps 624x352 39:22 progressive]#1 Audio[MP3 48000 Hz 2 channels 128 kbps idx=1]] G:\Sage\MythBusters s01e07.avi, Seg0[Mon 6/17 6:10:36.224-Mon 6/17 7:00:08.694]]]]
2013-06-17 12:09:36,134 [8492978@qtp-8426363-5] WARN sagex.phoenix.metadata.persistence.TVSeriesUtil - Unable to create a SeriesInfoID for :
__________________
-Win 7 server, 2 Colossus capture cards with two Cisco 4250 STBs, USB-Uirt, many storage drives
-two SageTV clients
-three HD300s
Reply With Quote
Reply

Tags
add, capitals, matcher, scaper


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
Video Titles instead of Filenames? can3gxw SageTV Beta Test Software 1 06-12-2010 06:08 PM
Force text to capitals kricker SageTV Studio 4 08-09-2009 02:19 PM
SageMC - Numeric Entry Switching to Capitals? Alfiegerner SageMC Custom Interface 4 01-20-2007 03:18 PM
Customising Filenames rickgillyon SageTV Software 8 04-04-2006 04:56 PM
Filenames of recorded shows Zarniwoop SageTV Software 2 07-26-2003 02:44 PM


All times are GMT -6. The time now is 07:18 PM.


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