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
  #21  
Old 08-19-2010, 12:23 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Hey Sean,

Here's an XML file that handles it, provided you use the -- notation and the file has an extention...

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!-- 
   TV Filename Scraper.  Used to scrape shows with the format Show - Episode
-->
<scraper name="title-show-episode" content="filename" thumb="thumb.png">
	<!-- 	input: 		$1=complete file uri -->
	<!-- 	returns: 	series name -->
	<GetShowName dest="3">
		<RegExp input="$$1" output="\1" dest="3">
			<expression>.*[/\\]([^/\\-]+)--([^/\\]+)\.[a-zA-Z0-9]+$</expression>
		</RegExp>
	</GetShowName>

	<!-- 	input: 		$1=complete file uri -->
	<!-- 	returns: 	Episode Title -->
	<GetEpisodeTitle dest="3">
		<RegExp input="$$1" output="\2" dest="3">
			<expression>.*[/\\]([^/\\-]+)--([^/\\]+)\.[a-zA-Z0-9]+$</expression>
		</RegExp>
	</GetEpisodeTitle>
</scraper>
Been working great for me.
__________________
Clients: 1xHD200 Connected to 50" TH-50PZ750U Plasma
Server : Shuttle SFF SSH55J2 w/ Win7 Home, SageTV v7, Core i3 540, 2GB RAM, 30GB SSD for OS, 1.5TB+2x1TB WDGP for Recordings, BluRay, 2xHDHR, 1xFirewire
SageTV : PlayOn, SJQ, MediaShrink, Comskip, Jetty, Web Client, BMT


Having a problem? Don't forget to include a log! (Instructions for: PlayOn For SageTV v1.5, MediaShrink)
Reply With Quote
  #22  
Old 08-19-2010, 12:55 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Thanks.. i'll add this in later tonight. Always handy to have extra filename scrapers in there
Reply With Quote
  #23  
Old 11-17-2010, 03:16 PM
Kirby's Avatar
Kirby Kirby is offline
Sage Icon
 
Join Date: Jan 2006
Posts: 1,253
Sorry to jump in and possibly go off topic a bit on this thread, but I am looking to start up my Sage system again, and in doing so, I want to import into it recordings from my Tivo Premiere. By using kmttg to grab the recordings from the Tivo, I can process them and rename them at will. Am I following this thread correctly that if I can get the files into named something like "Stargate Universe--Resurgence (Part 1)" that BMT will (with the proper scraper) pull in appropriate metadata (does it get images too?) and these imports would auto-magically find their way into my import directories or tv recordings?

I'm sorry for the newbie type question, I just never got the whole BMT thing going on my old Sage setup, and want to make sure I can populate my Tivo recordings into sage with metadata/graphics.
__________________
Sage Server: HP ProLiant N40L MicroServer, AMD Turion II Neo N40L 1.5GHz Dual Core, 8GB Ram, WHS2011 64bit, Sage 7.1.9 WHS, HDHR (1 QAM, 1 OTA), HDHR Prime 3CC, HD-PVR for copy-once movie channels
HTPC Client:Intel DH61AG, Intel G620 cpu, 8GB ram, Intel 80GB SSD, 4GB RamDisk holding Sage/Java/TMT5
Sage Client:Sage HD-200 Extender
Reply With Quote
  #24  
Old 11-17-2010, 03:44 PM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
Quote:
Originally Posted by Kirby View Post
Sorry to jump in and possibly go off topic a bit on this thread, but I am looking to start up my Sage system again, and in doing so, I want to import into it recordings from my Tivo Premiere. By using kmttg to grab the recordings from the Tivo, I can process them and rename them at will. Am I following this thread correctly that if I can get the files into named something like "Stargate Universe--Resurgence (Part 1)" that BMT will (with the proper scraper) pull in appropriate metadata (does it get images too?) and these imports would auto-magically find their way into my import directories or tv recordings?

I'm sorry for the newbie type question, I just never got the whole BMT thing going on my old Sage setup, and want to make sure I can populate my Tivo recordings into sage with metadata/graphics.
They always come back.

Short answer is yes. Best way to rename them is with Season and Episode info. (SxxExx) The more info the better chance for a match. And with the correct settings in BMT it will import them into TV Recordings.

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.
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
Season/Episode in filename svalmorri SageMC Custom Interface 6 09-24-2009 09:42 PM
Season and Episode tool script LoopyWolf SageTV Customizations 0 09-19-2009 01:57 PM
add Season and Episode numbers LoopyWolf SageTV Customizations 2 09-12-2009 01:41 PM
Season and episode information? CadErik SageTV EPG Service 7 10-03-2006 03:06 PM


All times are GMT -6. The time now is 02:22 AM.


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