User Scripts parameters missing double quotes

Report & discuss bugs found in 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
barlow
Newbie
Newbie
Posts: 15
Joined: February 11th, 2008, 7:36 am

User Scripts parameters missing double quotes

Post by barlow »

For some jobs the result-dir, nzb-name and nice-name are missing the double quotes which causes issues with my scripts.
Job name causing trouble contain underscores and square brackets.
Jobs with space in their name do get double quotes. Are quotes only added when needed?

This happens with SABnzbd 0.60 on Windows 7 x64.
Last edited by barlow on May 15th, 2011, 4:24 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: User Scripts parameters missing double quotes

Post by shypike »

Quotes are only added when needed.
That's when spaces, ampersands or semicolons are present.
barlow
Newbie
Newbie
Posts: 15
Joined: February 11th, 2008, 7:36 am

Re: User Scripts parameters missing double quotes

Post by barlow »

I see. Must be the script not liking some characters then.
But "%~1" seems to work well (to make sure there is only one set of double quotes).
Post Reply