l3uddz / plex_dupefinder

Find and delete duplicate files in Plex
GNU General Public License v3.0
303 stars 54 forks source link

Odd character/diaeresis in file name crashes script #38

Open tb2007 opened 4 years ago

tb2007 commented 4 years ago

Describe the bug The character/diaeresis "ö" in a file name causes plex_dupefinder to crash.

To Reproduce Have file with "ö" in it. Such as move-Auflösung.mkv Run plex_dupefinder, when dupefinder comes this files is crashes with:

Traceback (most recent call last): File "/usr/local/bin/plex_dupefinder", line 433, in print("\nDetermining best media item to keep for %r ..." % item) UnicodeEncodeError: 'ascii' codec can't encode character '\xf6' in position 81: ordinal not in range(128