podgrab icon indicating copy to clipboard operation
podgrab copied to clipboard

[Feature request] Option to filter out characters that Windows does not allow in file names

Open clb92 opened this issue 3 years ago • 1 comments

Would it be possible to get an option to filter out characters that Windows does not allow in filenames?

The show "Welcome to Nightvale" has used asterisks in two episode titles, and that causes me some problems in Windows. Podgrab is running in Docker on my Linux-based server, and my Podcasts download folder is shared on my network via SMB/Samba. Because some filenames contain * , I can't access those episodes on my SMB network share (Well, I can enable an option so that they get an automatic temporary file name like "1HDXAZ~1.MP3" but that's not very helpful, since I won't know what episode it is).

I assume that if I simply rename the file myself, Podgrab will think it's gone, and redownload it, unless I check "Don't re-download".

The best solution I can think of is an option to enable a filter that simply removes characters that Windows does not support in filenames.

Regarding the technical implementation of this, be sure to check that the filtered filename is not completely empty afterwards. Imagine if a podcast uploads an episode titled simply "********", it would be an empty filename, which is of course a problem too. In that special case, I'm not sure how to handle it. Just force prepend episode date?

clb92 avatar Feb 01 '22 14:02 clb92

Hello, I have the same issue.

A solution, that I noticed with other programs, is to replace those invalid characters (usually with an underscore "_") instead of removing them.

benbou8231 avatar Jan 10 '23 21:01 benbou8231