English > Support

File Scanner and Regular Expressions

<< < (5/18) > >>

patch:

--- Quote from: darichman on June 06, 2009, 05:53:51 am --- I have all my TV shows in the file format...
E:\Television\Dark Angel\Season 2\Dark Angel - 2-03. Proof of Purchase

--- End quote ---

See http://www.videodb.info/forum_en/index.php?topic=1168.0
[Thanks, Patch. We're here. ;) ]

You use a similar format to me, add similar regex before the standard ones
I uses season directories of the form "s1" but you use "season 1"
So you will need to replace my "\\s(?P<season>[0-9]{1,2})\\" with with your "\\season (?P<season>[0-9]{1,2})\\" 
Note leave out the bounding quotes

rick.ca:
Patch beat me to it, but I'm moving your topic anyway. I was wondering who might be brave enough to keep a regex topic moving. I should have known. ;D

darichman:
:-[ Should have looked a bit further!

Thanks guys, this thread has given me a lot of useful info :)
*goes off to try and learn regex*

rick.ca:

--- Quote ---*goes off to try and learn regex*
--- End quote ---

That's what I wanted to hear! Please explain it to me when you're done. ;)

To be a little more helpful... I think you'll find your own "custom" expression(s) will work perfectly—as long as your file path names are consistent.

nostra:
Easy ;)


--- Code: ---(?i)^.*\\(?P<origtitle>.*).?-.?(?P<season>[0-9]{1,3})-(?P<episode>[0-9]{1,3})\..?(?P<eptitle>.*)\..{1,4}
--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version