When downloading a book with a title that has characters that aren't allowed in a filename (and not specifying a new title with -title) the process fails:
Preparing to download
https://anyflip.com/t---m/s--t
Downloading 100% |█████████████████████████████████████████████████████████████████████████████████████████| (100/100)
Converting to pdf
2024/09/25 12:07:55 open גליון 2 | טעסט.pdf: The filename, directory name, or volume label syntax is incorrect.
Can it be added to the script to sanitize the title to delete/replace all characters not allowed in a filename?
The characters (at least on Windows) include:
/ (forward slash)
< (less than)
> (greater than)
: (colon - sometimes works, but is actually NTFS Alternate Data Streams)
" (double quote)
/ (forward slash)
\ (backslash)
| (vertical bar or pipe)
? (question mark)
* (asterisk)
When downloading a book with a title that has characters that aren't allowed in a filename (and not specifying a new title with
-title
) the process fails:Can it be added to the script to sanitize the title to delete/replace all characters not allowed in a filename?
The characters (at least on Windows) include: