Fresh install on CentOs 5.6; double quotes remain in directory names. This is resulting in very strange names when viewed over a Samba share.
f.i. directory aa"bb is seen as AOQT10~3.
Both switches 'Replace dots in Foldername' and ' Replace Illegal Characters in Folder Names' are enabled.
0.6.2: double quotes not removed from directory name.
Forum rules
Help us help you:
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.
Re: 0.6.2: double quotes not removed from directory name.
A double quote is a perfectly legal characters in Unix filenames.
For some reason Samba doesn't support it.
SABnzbd doesn't know that you are using Samba, because it only
deals with the native file system.
One work-around would be to use a pre-queue script in which
you remove the double quotes from the names.
Assuming you run from 0.6.2 sources, you can patch the code.
Module sabnzbd/misc.py
Replace lines 193/194with these
Maybe it's a good idea to change this in the next release.
However, the problem remains that Samba probably uses
the rules for Windows, while SABnzbd uses the native Unix rules.
For some reason Samba doesn't support it.
SABnzbd doesn't know that you are using Samba, because it only
deals with the native file system.
One work-around would be to use a pre-queue script in which
you remove the double quotes from the names.
Assuming you run from 0.6.2 sources, you can patch the code.
Module sabnzbd/misc.py
Replace lines 193/194
Code: Select all
CH_ILLEGAL = r'/'
CH_LEGAL = r'+'
Code: Select all
CH_ILLEGAL = r'/"'
CH_LEGAL = r'+\''
However, the problem remains that Samba probably uses
the rules for Windows, while SABnzbd uses the native Unix rules.
Re: 0.6.2: double quotes not removed from directory name.
Thanks for the prompt reply.
Gonna try this as soon as I'm home.
Gonna try this as soon as I'm home.
Re: 0.6.2: double quotes not removed from directory name.
Worked like a charm. (the code change that is)
Thanks again!
Thanks again!
Last edited by yokel on June 6th, 2011, 5:11 am, edited 1 time in total.
Re: 0.6.2: double quotes not removed from directory name.
Hi,
this solution doesn't work for me. I'm on 0.5.4. Any suggestions?
Thanks
this solution doesn't work for me. I'm on 0.5.4. Any suggestions?
Thanks

