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 03-05-2011, 12:40 PM
randyth randyth is offline
Sage User
 
Join Date: Aug 2009
Location: Eugene, ,OR
Posts: 41
Sample MediaTitles.xml Files

I would love to see examples of people's MediaTitles.xml files posted somewhere. Is there such a repository of such sample files, or could people post their successes here in this thread? I'd like to avoid reinventing the wheel to fix issues with various shows like The Office, V, Human Target, and so on when I know plenty of people have already done so.

Thanks,
-Randy
Reply With Quote
  #2  
Old 03-05-2011, 01:21 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Code:
<titles>
    <match>
        <regex>[\\/]Castle-.*</regex>
        <title>Castle</title>
        <year>2009</year>
        <metadata type="tv" name="tvdb">83462</metadata>
    </match>
    <match>
        <regex>[\\/]Parenthood-.*</regex>
        <title>Parenthood</title>
        <year>2010</year>
        <metadata type="tv" name="tvdb">94551</metadata>
    </match>
    <match>
        <regex>[\\/]TheGoodGuys-.*</regex>
        <title>The Good Guys</title>
        <year>2010</year>
        <metadata type="tv" name="tvdb">140101</metadata>
    </match>
    <match>
        <regex>[\\/]TheDefenders-.*</regex>
        <title>The Defenders</title>
        <year>2010</year>
        <metadata type="tv" name="tvdb">140101</metadata>
    </match>
    <match>
        <regex>[\\/]HawaiiFive0-.*</regex>
        <title>Hawaii Five-0</title>
        <year>2010</year>
        <metadata type="tv" name="tvdb">164541</metadata>
    </match>
    <match>
        <regex>[\\/]Shameless-.*</regex>
        <title>Shameless</title>
        <year>2011</year>
        <metadata type="tv" name="tvdb">161511</metadata>
    </match>    
    <match>
        <regex>[\\/]TheCape-.*</regex>
        <title>The Cape</title>
        <year>2011</year>
        <metadata type="tv" name="tvdb">160671</metadata>
    </match>
    <match>
        <regex>[\\/]MrSunshine-.*</regex>
        <title>Mr. Sunshine</title>
        <year>2011</year>
        <metadata type="tv" name="tvdb">164481</metadata>
    </match>
</titles>
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer

Last edited by stuckless; 03-06-2011 at 12:00 PM.
Reply With Quote
  #3  
Old 03-06-2011, 10:08 AM
randyth randyth is offline
Sage User
 
Join Date: Aug 2009
Location: Eugene, ,OR
Posts: 41
Thanks, razrsharpe. This helps a lot.
Reply With Quote
  #4  
Old 03-06-2011, 10:48 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
randyth,

Thanks for posting this I was getting ready to ask the same question.

One more thing I put the mediatitles.xml in the Sagetv main directory is that where it goes?
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #5  
Old 03-06-2011, 11:58 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by nyplayer View Post
randyth,

Thanks for posting this I was getting ready to ask the same question.

One more thing I put the mediatitles.xml in the Sagetv main directory is that where it goes?
It goes in SAGE_HOME/userdata/Phoenix/scrapers/

I;ve also updated the userguide to include a complete MediaTitles.xml sample and I updated the documentation to reflect the new location of where MediaTitles.xml should be located.
Reply With Quote
  #6  
Old 03-06-2011, 12:42 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
ok I had to create the scrapers subdirectory.


Thanks
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #7  
Old 03-06-2011, 02:42 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by randyth View Post
Thanks, razrsharpe. This helps a lot.
no prob I like the idea of a "repository of sorts"... as more people post samples in this thread maybe you want to keep the first post updated for everyone?
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #8  
Old 03-06-2011, 08:59 PM
randyth randyth is offline
Sage User
 
Join Date: Aug 2009
Location: Eugene, ,OR
Posts: 41
Quote:
Originally Posted by razrsharpe View Post
no prob I like the idea of a "repository of sorts"... as more people post samples in this thread maybe you want to keep the first post updated for everyone?
Yes, hopefully more people post theirs and we can create an "master file" that has entries for practically every show currently on the air. :-)
Reply With Quote
  #9  
Old 03-14-2011, 09:27 PM
ptzink ptzink is offline
Sage Aficionado
 
Join Date: Mar 2008
Posts: 300
Quote:
Originally Posted by stuckless View Post
It goes in SAGE_HOME/userdata/Phoenix/scrapers/

I;ve also updated the userguide to include a complete MediaTitles.xml sample and I updated the documentation to reflect the new location of where MediaTitles.xml should be located.
I don't have a scrapers directory in this location. My MediaTitles.xml file is located in [sage_home]/STVs/Phoenix/scrap?ers. Will it work in this directory too? The reason I am asking is because I have had trouble with some recent lookups (namely The Amazing Race from Sunday night). Perhaps this is the cause. Also, do you need to have the "-" at the end of your regex? Here is what my Amazing Race regex looks like:
<match>
<regex>[\\/]TheAmazingRace</regex>
<title>The Amazing Race</title>
<metadata type="tv" name="tvdb">77666</metadata>
</match>
Thanks again for your hard work on BMT and all your support.
__________________
Server: SageTV Media Center 7.1.19, Windows 7 Home Premium x64, Pentium Core2Duo, 4GB RAM, (1) Hauppauge HVR-2250, (1) Hauppauge HVR-1600, 1.5 TB of recording space
Android MiniClient: Nvidia Shield TV (16GB) HDMI out to Samsung LN46C630 46" LCD
Extender: STP-HD300, beta firmware "20110506-0", HDMI out to LG 37LD450 37" LCD
Reply With Quote
  #10  
Old 03-15-2011, 05:55 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by ptzink View Post
I don't have a scrapers directory in this location. My MediaTitles.xml file is located in [sage_home]/STVs/Phoenix/scrap?ers. Will it work in this directory too? The reason I am asking is because I have had trouble with some recent lookups (namely The Amazing Race from Sunday night). Perhaps this is the cause. Also, do you need to have the "-" at the end of your regex? Here is what my Amazing Race regex looks like:
<match>
<regex>[\\/]TheAmazingRace</regex>
<title>The Amazing Race</title>
<metadata type="tv" name="tvdb">77666</metadata>
</match>
Thanks again for your hard work on BMT and all your support.
This is covered in the user guide (There's a large section explaining the MediaTitles.xml)

It's highly unlikely that the media titles is causing the lockup... especially since bmt is only run once the recording is complete.

Read the section in the user guide (From the web ui, Help -> User Guide), and if you are still having issues, then let me know
Reply With Quote
  #11  
Old 03-15-2011, 06:43 AM
ptzink ptzink is offline
Sage Aficionado
 
Join Date: Mar 2008
Posts: 300
Quote:
Originally Posted by stuckless View Post
This is covered in the user guide (There's a large section explaining the MediaTitles.xml)

It's highly unlikely that the media titles is causing the lockup... especially since bmt is only run once the recording is complete.

Read the section in the user guide (From the web ui, Help -> User Guide), and if you are still having issues, then let me know
Thanks, but I didn't say lockups, I said lookups - as in finding metadata. Also, I have read that portion of the guide a few times before. If I am not mistaken, the directory location of the MediaTitles.xml has changed (recently?). I was just trying to figure out if my 'legacy' path for the xml file would still work (and why it wasn't moved during the upgrade process). If it doesn't, I will be sure to move it to the new scrapers location. Also, regarding the "-" at the end of Sage recordings regex - I noticed that all of your examples in the guide include the "-" at the end. But does it have to? The reason I ask is that The Amazing Race has a different name every season (eg. The Amazing Race 17, The Amazing Race 18, The Amazing Race: Unfinished Business, etc.) so the file name I wish to match would be anything with "TheAmazingRace" in it. Not "TheAmazingRace-". Hopefully this makes sense and is not too dumb of a question. Thanks.
__________________
Server: SageTV Media Center 7.1.19, Windows 7 Home Premium x64, Pentium Core2Duo, 4GB RAM, (1) Hauppauge HVR-2250, (1) Hauppauge HVR-1600, 1.5 TB of recording space
Android MiniClient: Nvidia Shield TV (16GB) HDMI out to Samsung LN46C630 46" LCD
Extender: STP-HD300, beta firmware "20110506-0", HDMI out to LG 37LD450 37" LCD
Reply With Quote
  #12  
Old 03-15-2011, 06:52 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by ptzink View Post
Thanks, but I didn't say lockups, I said lookups - as in finding metadata. Also, I have read that portion of the guide a few times before. If I am not mistaken, the directory location of the MediaTitles.xml has changed (recently?). I was just trying to figure out if my 'legacy' path for the xml file would still work (and why it wasn't moved during the upgrade process). If it doesn't, I will be sure to move it to the new scrapers location.
sean will correct me if im wrong... yes it will work... but the \STVs\Phoenix\.. location is meant for static phoenix data... it is not meant to house user configuration data... ie users are supposed to leave \stvs\phoenix alone and only mess with files in userdata\phoenix. iirc, files in userdata override files in stvs\phoenix..
Quote:
Also, regarding the "-" at the end of Sage recordings regex - I noticed that all of your examples in the guide include the "-" at the end. But does it have to? The reason I ask is that The Amazing Race has a different name every season (eg. The Amazing Race 17, The Amazing Race 18, The Amazing Race: Unfinished Business, etc.) so the file name I wish to match would be anything with "TheAmazingRace" in it. Not "TheAmazingRace-". Hopefully this makes sense and is not too dumb of a question. Thanks.
yes it will work... as long as tvdb uses the same id for each season.
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #13  
Old 03-15-2011, 06:55 AM
graywolf's Avatar
graywolf graywolf is offline
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,389
No, the - should not be required. Just another character to match against.

While I was playing around, learning, I tried with MediaTitles.xml in both locations you mentioned and once I got it working, it worked from either location.

Did not try with 2 different MediaTitles.xml in the different locations, nor even having it in both, to see what would happen.
Reply With Quote
  #14  
Old 03-15-2011, 07:28 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by ptzink View Post
Thanks, but I didn't say lockups, I said lookups - as in finding metadata. Also, I have read that portion of the guide a few times before. If I am not mistaken, the directory location of the MediaTitles.xml has changed (recently?). I was just trying to figure out if my 'legacy' path for the xml file would still work (and why it wasn't moved during the upgrade process). If it doesn't, I will be sure to move it to the new scrapers location. Also, regarding the "-" at the end of Sage recordings regex - I noticed that all of your examples in the guide include the "-" at the end. But does it have to? The reason I ask is that The Amazing Race has a different name every season (eg. The Amazing Race 17, The Amazing Race 18, The Amazing Race: Unfinished Business, etc.) so the file name I wish to match would be anything with "TheAmazingRace" in it. Not "TheAmazingRace-". Hopefully this makes sense and is not too dumb of a question. Thanks.
Sorry... must be early

The userdata area is new (but documented in that section of the user guide). Users should never touch files under the STVs/Phoenix area, since they WILL get overwritten. So the userdata was created to allow users to override core phoenix configurations.

Quote:
Originally Posted by razrsharpe View Post
sean will correct me if im wrong... yes it will work... but the \STVs\Phoenix\.. location is meant for static phoenix data... it is not meant to house user configuration data... ie users are supposed to leave \stvs\phoenix alone and only mess with files in userdata\phoenix. iirc, files in userdata override files in stvs\phoenix.. yes it will work... as long as tvdb uses the same id for each season.
That is correct.

Quote:
Originally Posted by graywolf View Post
No, the - should not be required. Just another character to match against.

While I was playing around, learning, I tried with MediaTitles.xml in both locations you mentioned and once I got it working, it worked from either location.

Did not try with 2 different MediaTitles.xml in the different locations, nor even having it in both, to see what would happen.
You can have multiple MediaTitles.xml file but they must end with MediaTitles.xml... ie, "MyFiles-MediaTitles.xml", "OldShows-MediaTitles.xml", etc.
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
A few hints needed for MediaTitles.xml davidk21770 Batch Metadata Tools 47 07-26-2016 11:00 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 01:13 PM.


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