Hi,
I use the following API call to let my sab download movies that are PW encrypted
url = sHost;
url += "/sabnzbd/api?mode=addurl";
url += "&apikey=" + sApiKey;
url += "&name=" + urlNzb;
url += "&nzbname=" + sMovieName;
url += "/" // <-- no matter how I encode this I get a plus sign
url += sPassword;
No matter how I econde the forward slash my sab will put a plus sign instead making the download fail.
Any idea?
thx
using API to download password encrypted files
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: using API to download password encrypted files
Thanks shypike, however I also used %2F and it got replaced with "+".
I am running version: 0.6.15 is it possible that an upgrade solves the issue?
I am running version: 0.6.15 is it possible that an upgrade solves the issue?
Re: using API to download password encrypted files
That's because a '/' cannot be part of a file name on any operating system.mordret wrote:Thanks shypike, however I also used %2F and it got replaced with "+".
Re: using API to download password encrypted files
Thanks for your reply. I finally solved the issue by loading the sab webinterface in an iframe and changing the + to a forward slash via javascript loool, well ugly perhaps but it does the trick
Re: using API to download password encrypted files
would it be worth considering using a different character to denote the password? or interpret a / char as literal so it can be utilised
The api essentially doesn't support it at all as it stands
The api essentially doesn't support it at all as it stands
Re: using API to download password encrypted files
There was a bug in SABnzbd that "sanitized" passwords coming from the "nzbname" parameter.
This will be fixed in 0.7.17
This will be fixed in 0.7.17
Re: using API to download password encrypted files
fantastic news
Re: using API to download password encrypted files
Great! that's good news indeed!