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 11-18-2010, 04:33 AM
nissse nissse is offline
Sage User
 
Join Date: Feb 2006
Posts: 36
Tv recordings format

Hello hello

I have completely reinstalled my sage server and only installed BMT

The trouble i'm having is that my recorded tv shows is in this format :

CSI-Del7ssong6-61628-0.ts

programname - epesode season - ? - ?.ts

Is there any way to configure BMT to read these files ?

Many thanks
Reply With Quote
  #2  
Old 11-18-2010, 06:30 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
nisse, all filenames are scraped by bmt using a set of scrapers in the SAGE_HOME/STVs/Phoenix/scrapers/xbmc/tvfilenames/ directory.

These scrapers basically contain "functions" that parse different parts of the filename for information, that bmt uses for lookups. The current Sage Airing scraper will not match on your sage recordings, so you'll need a new scraper.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!-- 
   TV Filename Scraper.  Used to Scrape Show Name, Season and Episode from a given file URI
   $$1 is always the complete file uri
-->
<scraper name="title-Del0ssong0" content="filename" thumb="thumb.png">
	<!-- 	input: 		$1=complete file uri -->
	<!-- 	returns: 	show name -->
	<GetShowName dest="3">
		<RegExp input="$$1" output="\1" dest="3">
		                
			<expression>.*[/\\](.*)-Del([0-9]{1,2})ssong{1,2}([[0-9]]+)</expression>
		</RegExp>
	</GetShowName>

	<!-- 	input: 		$1=complete file uri -->
	<!-- 	returns: 	Season #-->
	<GetSeason dest="3">
		<RegExp input="$$1" output="\2" dest="3">
			<expression>.*[/\\](.*)-Del([0-9]{1,2})ssong{1,2}([[0-9]]+)</expression>
		</RegExp>
	</GetSeason>

	<!-- 	input: 		$1=complete file uri -->
	<!-- 	returns: 	Episode #-->
	<GetEpisode dest="3">
		<RegExp input="$$1" output="\3" dest="3">
			<expression>.*[/\\](.*)-Del([0-9]{1,2})ssong{1,2}([[0-9]]+)</expression>
		</RegExp>
	</GetEpisode>
</scraper>
If you save this as as scraper in the tvfilenames area, then it might work. If you know regular expressions, then maybe this makes sense to you.
Reply With Quote
  #3  
Old 11-18-2010, 06:55 AM
nissse nissse is offline
Sage User
 
Join Date: Feb 2006
Posts: 36
Thank you for your reply

Did i do this right ?

I created a file named "scraper.xml" in "C:\Program Files\SageTV\SageTV\STVs\Phoenix\scrapers\xbmc\tvfilenames"

I pasted the code from your post and restarted sagetv service.

Everyting looks thesame. Did i miss anything ?
Reply With Quote
  #4  
Old 11-18-2010, 07:16 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Keep in mind that I just edited that on the fly, but yeah, that looks right. You have my email, so feel free to do a couple of scans and then send me the logs. Also, send me some complete filenames as well.

I did notice the Del#ssong# in your recordings the last time, but I wasn't sure what that was.

Also, CSI is notoriously bad to match on because there are so many csi variants. We may need to add a MediaTitle entry to map CSI to the correct tvdb entry.

If I get a chance tonight, I can try to test the scraper that I gave to see if it actually does work. (I'm at work, so I can't really test these things until I get home)
Reply With Quote
  #5  
Old 11-19-2010, 08:10 AM
nissse nissse is offline
Sage User
 
Join Date: Feb 2006
Posts: 36
Thank you for trying Sean.

Because i cant get seson and episode to work correctly is there a way to only get fanart ?
If not can i somehow fake a season and episode nr like s:1 e:1 so fan art is downloaded. (I have "Preserve Original Metadata for Recordings" marked anyway)
Reply With Quote
  #6  
Old 11-19-2010, 08:26 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by nissse View Post
Thank you for trying Sean.

Because i cant get seson and episode to work correctly is there a way to only get fanart ?
If not can i somehow fake a season and episode nr like s:1 e:1 so fan art is downloaded. (I have "Preserve Original Metadata for Recordings" marked anyway)
The issue that I'm seeing with your setup, is that even if I manually specify the season and episode (or it parses it from the filename, which was working with the new scraper), it appears to forget it when being passed to the search tool. i can't explain that.
Reply With Quote
  #7  
Old 11-19-2010, 08:37 AM
nissse nissse is offline
Sage User
 
Join Date: Feb 2006
Posts: 36
Ok thats strange

The only way i can get it to work is if i manualy add a seson and episode nr
(see attached pic)

I only change seson and episode from 0 to 1
then it works.

To bad that it cant make this automaticly.
Attached Images
File Type: jpg Capture.JPG (36.3 KB, 149 views)
Reply With Quote
  #8  
Old 11-19-2010, 01:21 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by nissse View Post
Ok thats strange

The only way i can get it to work is if i manualy add a seson and episode nr
(see attached pic)

I only change seson and episode from 0 to 1
then it works.

To bad that it cant make this automaticly.
And that is the add part... if you click "discover" button then it will parse the filename and fill in those values. But it doesn't appear to use them, or it sends it down null, etc. I can't reproduce that behaviour in my setups, but I saw it clear as day in yours
Reply With Quote
  #9  
Old 11-20-2010, 05:08 AM
nissse nissse is offline
Sage User
 
Join Date: Feb 2006
Posts: 36
You are right.
I will use BMT for movies only and hope my setup will work in future releses.
Thanks again Sean
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
Need advice before re-format vvulture SageTV Software 2 05-03-2007 01:06 AM
HD Recordings in Proprietary Format? jkohn SageTV Software 10 10-11-2006 09:19 PM
IR Code (Pronto Format) as in UIRT Helper --> SageTV Format as in Sagetv.properties krasev Hardware Support 0 09-12-2006 10:56 PM
Import recordings/setting/favorites after a format?? Bittermormon SageTV Software 3 07-16-2006 02:52 AM
what format are sage recordings aoehlke General Discussion 2 05-12-2005 02:06 PM


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


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