Adding nzb by url does not set source url

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
Evinyatar
Newbie
Newbie
Posts: 7
Joined: December 5th, 2011, 7:31 am

Adding nzb by url does not set source url

Post by Evinyatar »

Version: 0.6.11
OS: Ubuntu Lucid
Install-type: ppa
Skin (if applicable): Default
Firewall Software: None
Are you using IPV6? no
Is the issue reproducible? yes

When I add a nzb by url (using the addurl api call) I was expecting that url to be saved in the history as the source url for that nzb, like how it does this for nzb's from Newzbin. Unfortunately that's not the case; the source url stays empty. My app keeps track of new movie releases on newzbin and nzbmatrix, and records which releases (and hence corresponding movies) I've already downloaded. For newzbin it uses the source url to identify the release, but for nzbmatrix there doesn't seem to be a reliable way right now. Just having the source url there would be of great use.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Adding nzb by url does not set source url

Post by shypike »

There's no generic save of the source.
Only newzbin support has inherited that from the past, hard-coded, so not generally useful.
This all dates back from the time when newzbin was the significant player.
We might add it in a more generic way in a future release.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Adding nzb by url does not set source url

Post by shypike »

It will be in 0.7.0
Evinyatar
Newbie
Newbie
Posts: 7
Joined: December 5th, 2011, 7:31 am

Re: Adding nzb by url does not set source url

Post by Evinyatar »

Been using the beta for a few weeks now and this doesn't seem to be working yet.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Adding nzb by url does not set source url

Post by shypike »

It's there, but only when you let SABnzbd get the NZB from newzbin.
Click on a History entry and look at the line marked "Source".
However, looking at it now I see that the formatting is a bit garbled, I'll fix that.
Evinyatar
Newbie
Newbie
Posts: 7
Joined: December 5th, 2011, 7:31 am

Re: Adding nzb by url does not set source url

Post by Evinyatar »

It works fine for Newzbin reports (which I grab using addid), but I thought the point of making the "source" field generic was that entries added using 'addurl' would also record the source url?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Adding nzb by url does not set source url

Post by shypike »

They do, have you tried?
Evinyatar
Newbie
Newbie
Posts: 7
Joined: December 5th, 2011, 7:31 am

Re: Adding nzb by url does not set source url

Post by Evinyatar »

To be sure I just tried it again using an nzbmatrix URL and it's still not working; although I must add I'm using the nzb-details link instead of the nzb-download link. I know sabnzbd resolves the former into the latter, but could that be the issue?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Adding nzb by url does not set source url

Post by shypike »

Hey, I get the source URL in the history.
How do you get the NZB get into SABnzbd?
Using a plugin like nzbdStatus?
In that case, SABnzbd doesn't know the NZB came from nzbmatrix.
Evinyatar
Newbie
Newbie
Posts: 7
Joined: December 5th, 2011, 7:31 am

Re: Adding nzb by url does not set source url

Post by Evinyatar »

My webapp adds them using the addurl api call:

Code: Select all

/sabnzbd/api?mode=addurl&name=http://nzbmatrix.com/nzb-details.php?id=xxx&cat=movies&nzbname=yyy&output=json&apikey=zzz
Evinyatar
Newbie
Newbie
Posts: 7
Joined: December 5th, 2011, 7:31 am

Re: Adding nzb by url does not set source url

Post by Evinyatar »

Okay nevermind, the url's are there when I call the "history" api call. I was expecting them to appear in the web interface as well but apparently that's something else. But this is good enough for my app, so thanks :)
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Adding nzb by url does not set source url

Post by shypike »

Evinyatar wrote:I was expecting them to appear in the web interface as well but apparently that's something else.
They do show up, click on the history entry.
Which skin are you using?
Evinyatar
Newbie
Newbie
Posts: 7
Joined: December 5th, 2011, 7:31 am

Re: Adding nzb by url does not set source url

Post by Evinyatar »

Ah, right. I'm using Plush, and I was looking for the "Source URL" icon which still only appears for newzbin stuff.
Post Reply