brokkr / poca

A fast, multithreaded and highly customizable command line podcast client, written in Python 3
GNU General Public License v3.0
23 stars 4 forks source link

Config: setting to manually determine filename "permissiveness" #131

Closed brokkr closed 3 years ago

brokkr commented 3 years ago

In 1.1 we're introducing a system of gradual restrictions in what characters are allowed in filenames: permissive, ntfs, and restrictive. Poca will try them in order of increasing restrictiveness, based purely on what the filesystem will accept.

However, in some scenarios, the filesystem may be accepting of anything but the files are intended to be shared through less permissive protocols, e.g. CIFS, http, etc.

It would therefore be convient to introduce a setting that would allow the user to manually determine the level to start at. If the setting was ntfs, poca would skip attempting to write a file with the permissive setting, e.g. including a colon in the name, and go straight to an attempt that has weeded out characters forbidden on an NTFS filesystem.

brokkr commented 3 years ago

There is a setting in my auto-generated config file. Did I already implement this? #professional

brokkr commented 3 years ago

Yup, setting works as intended. Settings values are restricted to those documented.