The 0.5.0 release got my attention because of the new API possibilities. After implementing the addfile functionality in a third party application I'm working on, it seemed not to be working. I ofcourse thought the problem was within the client application, till later I found the following:
- the HTTP POST message seemed valid (I worked with HTTP a lot more)
- SABnzbd did receive the data properly
- after logging the kwargs, I actually saw the complete nzb-file
In short, in the api_handler method, in the addfile-portion, in interfcae.py, the if statement condition is never met:
Code: Select all
normal_upload = kwargs.get('nzbfile', '')
if normal_upload:
name = normal_upload
So far my bugreport, I can extend my report with a sample code which will most likely reproduce the bug, if needed. I'm curious to know what the problem might be, as I have absolutely no in-depth knowledge of the SABnzbd project whatsoever, nor I know if it might be a problem in my configuration or anything a like plus I'd love to see it working, ofcourse.
Thanks,