Author Topic: File Scanner views several movies starting with abbreviations as one movie...  (Read 4850 times)

0 Members and 1 Guest are viewing this topic.

Offline raldo

  • Power User
  • ****
  • Posts: 140
    • View Profile
The following movies are regarded as one movie by scanner:

\\Server\Videos\Spillefilm.dummy\Dr. Dolittle.avi
\\Server\Videos\Spillefilm.dummy\Dr. No.avi
\\Server\Videos\Spillefilm.dummy\E.T. the Extra-Terrestrial.avi
\\Server\Videos\Spillefilm.dummy\G.I. Jane.avi
\\Server\Videos\Spillefilm.dummy\L.A. Confidential.avi
\\Server\Videos\Spillefilm.dummy\Mr. Deeds.avi
\\Server\Videos\Spillefilm.dummy\Pi.avi
\\Server\Videos\Spillefilm.dummy\U.S. Marshals.avi

Any way around this?

Offline rick.ca

  • Global Moderator
  • *****
  • Posts: 3241
  • "I'm willing to shoot you!"
    • View Profile
The scanner will do exactly what the regex in your configuration tells it to do. How to specify and order the regex so it works the way you want it to depends on the structure of your filing system and naming convention. At a glance, I'd say (?i)^.*\\(?P<title>.*)\\.{0,2}\..{3,4} looks like one that does what you describe. If this is so, it's because no matches are found with previous expressions, and this one matches because of the 0 to 2 "." in the filename. As a result, the title is determined to be "Spillefilm.dummy" and the title in the filename is ignored.

You'll have to consider the impact on your other file pathnames, but something like (?i)^.*\\[Spillefilm.dummy]\\(?P<title>)\..{3,4} (if encountered before any other expression that produces a match) would take care of this particular situation.