"Scan Library Files" seems to have a bug

Server Version#: 1.20.1.3252

After scanning a library, emptying the trash and scanning the library again, a number of movies appear as “recently added”, without being added again at all.
The common feature of these movies is that their names, and the names of their containing folders, contain non-ASCII-character, like umlauts or other diacritical characters like è é ø and the like.

I guess this is not the intended behaviour of the scanner …

jurgen

Can you share specific movie and file names?

Hi,

well, here are the xml-files of the last two items that showed up this way.
I now notice that they have consecutive media ids following the one
that was actually added to the database (here 39231 was added, and
39232 and 39233 reappeared after that).

As I said, this always involves media with diacritical characters.
Hope that helps a bit.

jurgen

Archiv.zip (23.8 KB)

What is /Volumes/Media?

Is it a USB drive or a network drive?

My first wild guess is that /Volumes/Media is network storage, and not handling the accented characters consistently.

If you create a directory locally on your computer (and add it to your Library) and copy these files into it, do they match (and stay matched, and not vanish) how you expect?

Just to answer your first question: Yes, the files are sitting on a Synology NAS.

Most of the files with non-ASCII characters are handled correctly. Only after emptying the trash do some of those files pop up again.

jurgen

Can you go through the whole cycle that demonstrates the problem, and then gather and share PMS logs?


Is the behavior different when the files aren’t on the NAS? That will help narrow down the issue - Plex vs. NAS/File Sharing.

Are you using SMB/CIFS? Fancy characters are handled and re-mapped and encoded and even stored differently by different filesystems.

That usually shows up as problems when writing filenames on a Mac, and then viewing them on a different system. Or vice versa. So what you’re doing here should be fine, theoretically.


Or, it could be a Plex thing. “Empty Trash” makes me think of you, @drzoidberg33.

Thanks for your quick replies. To gather the logs will take some time, though. I first have to reproduce this behaviour. It will certainly show up again, but it may be a while.

By the way, the PMS runs on a mac mini and is hosted through AFP. Accessing the files on the NAS through the mac finder never caused any problems with non-ASCII characters.

I once switched to the SMB protocol but that messed up a lot of file names. So I switched back to AFP.

jurgen

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.