joshuaboniface / mediasorter

mediasorter: media file sorting tool
GNU General Public License v3.0
29 stars 1 forks source link

Titles with illegal file characters create randomized folder and file names #10

Open WesSouza opened 9 months ago

WesSouza commented 9 months ago

Some shows such as "Penn & Teller: Fool Us" contain illegal characters that cannot be used in folders and files.

The logs indicate the file was moved correctly:

>>> Parsing (redacted)/Penn.and.Teller.Fool.Us.S10E04.1080p.WEB.h264-EDITH.mkv
Sorting action:   move
Raw file info:    series='penn and teller fool us' S=10 E=4
TVMaze API URL:   http://api.tvmaze.com/singlesearch/shows?q=penn%20and%20teller%20fool%20us&embed=episodes
Sorted filename:  (redacted)/Penn & Teller: Fool Us/Season 10/Penn & Teller: Fool Us - S10E04 - We Have a Raccoon Problem.mkv
Creating target directory '(redacted)/Penn & Teller: Fool Us/Season 10'
Running sort action... done.
Creating info file... done.

But given the name contains invalid characters (I assume the :), my SMB share shows it like so:

Screen capture of macOS Finder showing POXWUL~O

I suggest an option (CLI or YAML) to replace these reserved characters with something else.

oddstr13 commented 2 weeks ago

Those are short filenames (8.3) https://en.wikipedia.org/wiki/8.3_filename

https://serverfault.com/questions/124611/special-characters-in-samba-filenames This serverfault question contains the relevant information, including a possible solution (depending on your client system), as well as a list of banned and permitted characters for windows file paths.