Author Topic: File scanner confuses videos with similar names...  (Read 8340 times)

0 Members and 2 Guests are viewing this topic.

Offline raldo

  • Power User
  • ****
  • Posts: 140
    • View Profile
File scanner confuses videos with similar names...
« on: December 16, 2009, 01:01:22 am »
to begin with, I have the following examples on disk, in the same folder:
sling blade.iso
blade.iso

blades of glory.iso
glory.iso

and so on.

Initially, all these videos are properly tagged with distinct and correct filenames.

However, when I now scan the disk, PVD wants to change the file path of sling blade.iso to blade.iso, blades of glory.iso to glory.iso.

What gives?

Offline rick.ca

  • Global Moderator
  • *****
  • Posts: 3241
  • "I'm willing to shoot you!"
    • View Profile
Re: File scanner confuses videos with similar names...
« Reply #1 on: December 16, 2009, 07:21:39 am »
Quote
PVD wants to change the file path...

It doesn't "want" to—it's only a suggestion. ;)

The scanner needs to be able to detect filenames that have changed, so it's difficult to imagine the program logic that would compare a new filename with one already matched and decide which is the "right" one. I suppose it could be done based on some arbitrary rules, but that would make things more complex. Most users are already challenged by what the regex are doing.

This is far less likely to happen if the year is included in the filename. Doing so also makes the online lookup much more accurate.

Offline raldo

  • Power User
  • ****
  • Posts: 140
    • View Profile
Re: File scanner confuses videos with similar names...
« Reply #2 on: December 17, 2009, 01:57:57 am »
so it's difficult to imagine the program logic that would compare a new filename with one already matched and decide which is the "right" one. I suppose it could be done based on some arbitrary rules, but that would make things more complex.
Well, there are algorithms that compare "distances" between strings. Such an algorithm would surely find "blades of glory" closer to "blades of glory" than "glory" when you strip away the extension ;)

But anyways, your tip including the year seems to have cleared most of the problems.

However, I have three videos in VTS format, stored in the following structure [movie name]\video_ts\*.* Now, the first time I scan the files, the scanner manages to relate all the VTS files to the correct movie. Upon the next scan, two of the DVDs come up with "change file path". Closer inspection shows that the VTS files of the third movie is all mixed into the former two. Any ideas on how to fix this? (year) doesn't help..

Offline rick.ca

  • Global Moderator
  • *****
  • Posts: 3241
  • "I'm willing to shoot you!"
    • View Profile
Re: File scanner confuses videos with similar names...
« Reply #3 on: December 17, 2009, 02:47:13 am »
What happens if you get them set correctly (manually, if you have to) and then add them to the ignore list when the scanner detects them again? Not a ideal solution, but might be acceptable if this doesn't happen often.
« Last Edit: December 17, 2009, 09:49:07 am by rick.ca »

Offline raldo

  • Power User
  • ****
  • Posts: 140
    • View Profile
Re: File scanner confuses videos with similar names...
« Reply #4 on: December 17, 2009, 08:41:51 am »
That's basically what I've done but I thought I'd report it in case the soluton was obvious.