Author Topic: Scan Folders Customization  (Read 10769 times)

0 Members and 1 Guest are viewing this topic.

Offline orgazmo

  • Member
  • *
  • Posts: 11
    • View Profile
Scan Folders Customization
« 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 !

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: Scan Folders Customization
« Reply #1 on: September 12, 2009, 10:36:51 pm »
Please provide some examples of the paths (with file names) you need to parse
Gentlemen, you can’t fight in here! This is the War Room!

Offline orgazmo

  • Member
  • *
  • Posts: 11
    • View Profile
Re: Scan Folders Customization
« Reply #2 on: September 17, 2009, 08:14:00 pm »
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


Offline orgazmo

  • Member
  • *
  • Posts: 11
    • View Profile
Re: Scan Folders Customization
« Reply #3 on: September 26, 2009, 08:28:05 pm »
Is there anyway to work around this ?

Offline patch

  • Older Power User
  • *****
  • Posts: 250
    • View Profile
Re: Scan Folders Customization
« Reply #4 on: September 26, 2009, 11:56:51 pm »
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>[^\\]+)
« Last Edit: September 27, 2009, 12:12:21 am by patch »

Offline orgazmo

  • Member
  • *
  • Posts: 11
    • View Profile
Re: Scan Folders Customization
« Reply #5 on: October 15, 2009, 02:37:20 am »
Thanks for the help, I will try !