Possible to automatically replace slashes in filenames?

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Woog
Newbie
Newbie
Posts: 8
Joined: June 20th, 2012, 10:50 pm

Possible to automatically replace slashes in filenames?

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Possible to automatically replace slashes in filenames?

Post 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.
Woog
Newbie
Newbie
Posts: 8
Joined: June 20th, 2012, 10:50 pm

Re: Possible to automatically replace slashes in filenames?

Post 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".
User avatar
safihre
Administrator
Administrator
Posts: 5678
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Possible to automatically replace slashes in filenames?

Post 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.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Woog
Newbie
Newbie
Posts: 8
Joined: June 20th, 2012, 10:50 pm

Re: Possible to automatically replace slashes in filenames?

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Possible to automatically replace slashes in filenames?

Post 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?
Post Reply