Page 1 of 1
Possible to automatically replace slashes in filenames?
Posted: April 10th, 2016, 12:25 pm
by Woog
Or otherwise prevent sabnzbd from automatically treating everything after a slash as a password for the archive? The setting to replace illegal characters in filenames seems to do its thing after sabnzbd has already cut the download name in half by treating the slash as a password delineator.
Re: Possible to automatically replace slashes in filenames?
Posted: April 10th, 2016, 1:28 pm
by shypike
Slashes in job names ar very unusual, that's why we use that character.
If you insist on using them, you can write a little pre-queue script to
do the conversion of slashes yourself.
Re: Possible to automatically replace slashes in filenames?
Posted: April 10th, 2016, 10:54 pm
by Woog
shypike wrote:Slashes in job names ar very unusual, that's why we use that character.
If you insist on using them, you can write a little pre-queue script to
do the conversion of slashes yourself.
I mean, they're no so unusual that this isn't an issue. I downloaded 22 releases today that included forward slashes in the name. And while I can obviously manually change them, it's fairly inconvenient, and not because I "insist on using them".
Re: Possible to automatically replace slashes in filenames?
Posted: April 11th, 2016, 1:12 am
by safihre
Don't they get replaced automatically when you turn on Safe filenames for Windows in the Config? Since forward slash is not allowed on Windows.
Re: Possible to automatically replace slashes in filenames?
Posted: April 11th, 2016, 2:01 am
by Woog
safihre wrote:Don't they get replaced automatically when you turn on Safe filenames for Windows in the Config? Since forward slash is not allowed on Windows.
No, because sabnzbd treats everything after the slash as being the password, not part of the filename.
Re: Possible to automatically replace slashes in filenames?
Posted: April 11th, 2016, 2:48 am
by shypike
How do you get the NZB file in SABnzbd?
It cannot be from an actual file name.
Which NZB indexer are you using?