Page 1 of 1

Sabnzbd handling of spotweb .zip nzb files

Posted: April 29th, 2013, 4:13 am
by Acio
Hi All,

I discovered an issue with the way sabnzbd tries to retrieve NZBD's from my spotweb implementation.
When I change my spotweb settings for NZBD handling to compress nzb's into one zip file the automated retrieve process of sabnzbd fails because it calls out an unknown filetype.

my logs then show me this;

2013-04-29 10:57:46,642::INFO::[urlgrabber:116] Grabbing URL http://192.168.5.250:8095/api?t=g&id=8J ... pikey=XXXX
2013-04-29 10:57:48,919::INFO::[urlgrabber:228] Unknown filetype when fetching NZB, retry after 30s http://192.168.5.250:8095/api?t=g&id=8J ... pikey=XXXX

THe file generated by spotweb if I download this by using the URL gives me this format; "SpotWeb_1367225996.9882.zip". Now as soon as I change my spotweb settings to 'merge NZB files' it works like advertised.
I can provide the zipped nzb file if necessary, though my guess is renaming any zipped file to name.number.zip will trigger the same problem.

If this can be fixed I would be grateful!

regards,
Acio

Re: Sabnzbd handling of spotweb .zip nzb files

Posted: April 29th, 2013, 5:51 am
by shypike
I have no idea how Spotnet wants to interface with SABnzbd.
What are the URLs supposed to accomplish?

Re: Sabnzbd handling of spotweb .zip nzb files

Posted: April 29th, 2013, 8:03 am
by Acio
Hi,

the URL basically means, give me NZB file of spot (which is an nzb post) X. so it's an identifier to a spotnet post which makes spotweb gives the requestor the NZB file related to that post.

Since sickbeard and sabnzbd don't know the spotweb url, you can use .htaccess to rewrite the request into a newznab request, like so; https://github.com/spotweb/spotweb/wiki ... b-Provider.
This is what I did to make it work with both these programs.
The issue however is the filenaming (I think) which results when I have spotweb offer the nzb in a zip with 2 dots in the filename.
The strange thing is if I download the nzb file manually and then offer it to sabnzbd via the manual upload of nzb's it does add it and it can open the nzb.

If you need more information let me know,

regards
Acio

Re: Sabnzbd handling of spotweb .zip nzb files

Posted: April 29th, 2013, 8:49 am
by shypike
Acio wrote: The issue however is the filenaming (I think) which results when I have spotweb offer the nzb in a zip with 2 dots in the filename.
Does the ZIP file name contain a double dot or does the NZB inside it?

BTW: the error message actually means that processing of the file failed,
but not necessarily due to the file type. The message isn't always appropriate here.
You can set the logging level to Debug (Status page) after the next try, inspect the log file.
This might give more info.

Re: Sabnzbd handling of spotweb .zip nzb files

Posted: April 29th, 2013, 10:34 am
by Acio
The ZIp file does.

ZIP file name; "SpotWeb_1367225996.9882.zip"
nzb file name; "Game Of Thrones S03E05 proper 720p hdtv x264-killers.nzb"

I'll try to debug once I get home, see what the detailed error message would be.

rgrds,
Acio