Personal Video Database
English => Support => Topic started by: orgazmo on September 12, 2009, 05:51:17 pm
-
Hi !
On the hard drive I use to store movies, all the filenames start with the year (2009 - Movie Name (Director) ). In the older versions of PVD, when I scanned for changes the script found the movies. But now in the new versions, the scan doesn't understant the date (It gives me "200" , the first 3 letters of the filename).
I checked in the preferences in the file scanner section and saw the RegExps strings, but have no idea how to fix it so it ignores the first 4 to 6 characters in the filename...
Can somebody help me on this ?
Thanks a lot !
-
Please provide some examples of the paths (with file names) you need to parse
-
Z:\Genre - Action\1967 - Bonnie and Clyde (Arthur Penn).avi
Z:\Genre - Action\1971 - Dirty Harry (Don Siegel).avi
Z:\Genre - Action\1971 - Vanishing Point (Richard C Sarafian).avi
Z:\Réalisateurs\Allen, Woody\1971 - Bananas.avi
Z:\Réalisateurs\Allen, Woody\1972 - Play It Again, Sam.avi
Z:\Réalisateurs\Allen, Woody\1973 - Sleeper.avi
-
Is there anyway to work around this ?
-
Z:\Genre - Action\1967 - Bonnie and Clyde (Arthur Penn).avi
Z:\Réalisateurs\Allen, Woody\1971 - Bananas.avi
Have a read of http://www.videodb.info/forum_en/index.php?topic=1168.0
The standard movie naming format is
<Movie name> (<year>) <mostly ignored stuff>
By putting the year first PVD sile scanner will have trouble finding the movie name.
Solutions
1) Rename your files. If you pipe a directory listing to a text file. Edit it in excel or other program into a sequence of rename dos lines, then run the bat file.
2) Modify your regex in PVD to recognize your format.
It normally uses
(?i)^.+\\(?P<title>[^\\]+)[^\\]+(?P<year>(19|2\d)\d{2})
or
(?i)^.*\\(?P<title>.*)\\.{0,2}\..{3,4}
You need something with the year first earlier in search order (BTW this is not tested, follow instructions in referenced thread to do so)
(?i)^.+\\(?P<year>(19|2\d)\d{2}) - (?P<title>[^\\]+)
-
Thanks for the help, I will try !