Personal Video Database

English => Support => Topic started by: munkman on April 09, 2011, 05:37:03 pm

Title: File Scanner Regex Year Help
Post by: munkman on April 09, 2011, 05:37:03 pm
Hi,

I'm a new user and I LOVE this program. I have over a 1000 movies and this is what I've been dreaming of to manage my collection. However, I'd like to get my first massive import right and so far I haven't been able to configure the File Scanner to do what I want. My avi files are named \File Name [YYYY].avi . Sometimes with a [1080p] or [720p] to denote quality after the year (I can live without this). To avoid the tedious import/selection process I was hoping to configure the file scanner to pick up the year which would make 100% matches much more likely. I have searched and found this post: http://www.videodb.info/forum_en/index.php/topic,1168.0.html, which references http://www.regular-expressions.info/tutorial.html as the go to resource. I haven't found it as helpful as I would have hoped. Given that my modification to the syntax is relatively simple, I was hoping that someone could help me out.

(?i)^.+\\(?P<title>)+?[.+(?P<year>)?] doesn't seem to be working...

Thanks!!!!
Chad
Title: Re: File Scanner Regex Year Help
Post by: rick.ca on April 09, 2011, 10:34:30 pm
Welcome, Chad.

(?i)^.*\\(?P<title>.*) \[(?P<year>(19|2\d)\d{2}).*\..{3,4} should do it.
Title: Re: File Scanner Regex Year Help
Post by: munkman on June 19, 2014, 12:05:41 am
Totally forgot to log in to say thank you for the help! I was revisiting this post because I lost my original .PVD file and need to import all of my movies again and realized I hadn't thanked you. So... thanks!