NZB Download Deluxe

Got a program that plays well with SABnzbd? Share it here!
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: NZB Download Deluxe

Post by sander »

Question: it seems nzbdd starts up SABnzbd if it is not running. Correct? If so: *how* does nzbdd if SABnzbd is running? Do you use a process overview? Or just brute-force "no webinterface? then start it!"-method?
User avatar
dynup
Newbie
Newbie
Posts: 19
Joined: February 19th, 2012, 1:02 pm
Location: Hamburg, Germany
Contact:

Re: NZB Download Deluxe

Post by dynup »

Yes, NZBdd checks response from SABnzbd, if no result it starts SABnzbd, otherwise not!
User avatar
jcfp
Release Testers
Release Testers
Posts: 1004
Joined: February 7th, 2008, 12:45 pm

Re: NZB Download Deluxe

Post by jcfp »

Nice, a qt-based app. Tried it, and basically the gui displayed with all buttons except the About dialog greyed out, and all values at the bottom listed as zero. Meanwhile, there was a continuous stream of requests to 127.0.0.1:8080 (where my sab install is located, runs as a service on ubuntu).

So... I listened in on the traffic and found NZBdd asking for "/config/general/" over and over again. I guess it's trying to scrape the api key off my existing sab install that way, but something goes wrong. Maybe it expects Plush rather than smpl? After all, that page differs depending on the interface theme. Consider -at least as a fallback- to make the app politely ask for the api key? Currently, it's ends up in an infinite loop looking for the api key. The only way I could get past that, was by shutting down my install, moving the normal sabnzbd config out of the way, and then run NZBdd (which then made the app start sab automatically, with default settings so things worked).

On a side note, I grabbed the sources of the deb from the ppa, did some cleanup and made some quick changes so it would actually build and include the main program in the amd64 deb, as well as set proper dependencies. I'll share the results later on, after test-building it.
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: NZB Download Deluxe

Post by sander »

dynup wrote:Yes, NZBdd checks response from SABnzbd, if no result it starts SABnzbd, otherwise not!
Could you consider another (additonally, debug) way? If you first use a process overview (ps, see below), and then netstat, your tool would help very much for people who have problems starting/finding SABnzbd. The method below makes clear 1) SABnzbd is running, and 2) it is listening on port 8080 and 909, and 3) it is listening to LAN/WAN connections (not locally only). That is usefull (debug) information for people having problems with SABnzbd.

Code: Select all

[code]sander@R540:~$ ps -ef | grep -i sabnzbd
sander   22823     1  2 17:17 ?        00:02:30 /usr/bin/python -OO /usr/bin/sabnzbdplus -d
sander@R540:~$ 
sander@R540:~$ 
sander@R540:~$ netstat -apon | grep 22823
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp6       0      0 :::8080                 :::*                    LISTEN      22823/python     off (0.00/0/0)
tcp6       0      0 :::9090                 :::*                    LISTEN      22823/python     off (0.00/0/0)
sander@R540:~$ 
[/code]

Windows has about the same commands: tasklist, and netstat -apon,

Code: Select all

C:\Users\Sander>tasklist | find /i "Sab"
SABnzbd-helper.exe            2344 Services                   0      7.608 K
SABnzbd-service.exe           2304 Services                   0     26.216 K

C:\Users\Sander>netstat -aon | find /i "2344"

C:\Users\Sander>netstat -aon | find /i "2304"
  TCP    [::]:8080              [::]:0                 LISTENING       2304

C:\Users\Sander>
... but maybe Qt offers a nicer way / library to get a process overview?
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: NZB Download Deluxe

Post by sander »

jcfp wrote: On a side note, I grabbed the sources of the deb from the ppa, did some cleanup and made some quick changes so it would actually build and include the main program in the amd64 deb, as well as set proper dependencies. I'll share the results later on, after test-building it.
Great work, jcfp. Can you make the PPA available for Ubuntu versions < Oneiric? The binary runs well on my Lucid (10.04)
RobSolid82
Newbie
Newbie
Posts: 4
Joined: February 20th, 2012, 1:24 pm

Re: NZB Download Deluxe

Post by RobSolid82 »

Doesn't seem to be workin here on Win 7. Says "Initializing" at the bottom and all buttons are greyed out except for About.

Only thing in the ini file is

Code: Select all

[MainWindow]
x=164
y=118
width=800
height=400
Edit: Somewhat working now. All I did was enable HTTPS and after restarting, every setting reverted to default and all categories and sorting are gone. Slightly annoying.
User avatar
dynup
Newbie
Newbie
Posts: 19
Joined: February 19th, 2012, 1:02 pm
Location: Hamburg, Germany
Contact:

Re: NZB Download Deluxe

Post by dynup »

sander wrote:Could you consider another (additonally, debug) way?
...it's on the TODO list!
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: NZB Download Deluxe

Post by sander »

I'm now playing with nzbdd to access my remote server. It does work, and it does show the History.

However, adding a NZB does not seem to work: I click the +/Add button, I select a NZB, and press Open. So far so good. However, nothing new appears in the queue, neither via nzbdd's nor SAB's webgui's overview,

The weblogging of the remote SAB webserver says:

Code: Select all

195.241.136.218 - - [20/Feb/2012:22:34:16] "POST /sabnzbd/api HTTP/1.1" 200 47 "" "NZB Download Deluxe"

195.241.136.218 - - [20/Feb/2012:22:34:22] "GET /sabnzbd/api?mode=queue&output=xml&apikey=0448c678000blabla HTTP/1.1" 200 1470 "" "NZB Download Deluxe"
195.241.136.218 - - [20/Feb/2012:22:34:22] "GET /sabnzbd/api?mode=history&output=xml&apikey=0448c678000blabla HTTP/1.1" 200 9873 "" "NZB Download Deluxe"
The first line is the Add (which is not working), the second two lines are the regular nzbdd GUI stuff.

So ... a bug with adding a NZB to a remote server?
User avatar
jcfp
Release Testers
Release Testers
Posts: 1004
Joined: February 7th, 2008, 12:45 pm

Re: NZB Download Deluxe

Post by jcfp »

sander wrote:Great work, jcfp. Can you make the PPA available for Ubuntu versions < Oneiric? The binary runs well on my Lucid (10.04)
I'm leave that up to the author of the software to improve his own ppa, but you can grab the full modified source deb:

Code: Select all

dget https://launchpad.net/~jcfp/+archive/jcfp-private/+files/nzbdd_1.0-0ubuntu1%7Ejcfp4%7Eoneiric.dsc
I think it should build on natty and probably maverick without modification, for much older releases you might run out of luck with the version requirements of the build dependencies. Unlike the "Linux" release the author has on sourceforge, this one does not include kde libs. Looks like it build fine on both i386 and amd64. For those that only want the packaging (i.e., the debian dir), grab this.
User avatar
dynup
Newbie
Newbie
Posts: 19
Joined: February 19th, 2012, 1:02 pm
Location: Hamburg, Germany
Contact:

Re: NZB Download Deluxe

Post by dynup »

sander wrote:So ... a bug with adding a NZB to a remote server?
I added this to the tickets!
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: NZB Download Deluxe

Post by sander »

I found a bug that's quite serious for me:

I have SABnzbd locally installed on my laptop, and I have a SABnzbd running on a remote system.
I start up NZBdd on my laptop to monitor the *remote* SABnzbd (so running on another system). To do so, I fill out the FQDN of that remote server, let's say remoteserver.mydomain.com. That works, as reported earlier. Good.
However, when I try to start my local SABnzbd, it goes completely wrong: SAB will not start anymore (and it opens web browser tab with the URL to the remote server). Reason: NZBdd has changed the first occurrence of 'host' in the local sabnzbd.ini from 0.0.0.0 to remoteserver.mydomain.com. So now the local SAB thinks it must bind to that address, ... which of course it can't do.

Solution: NZBdd should not touch the local sabnzbd.ini when administering remote SAB instances.
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: NZB Download Deluxe

Post by sander »

@dynup

Any news, or maybe even a new version? Looking forward to it!
User avatar
dynup
Newbie
Newbie
Posts: 19
Joined: February 19th, 2012, 1:02 pm
Location: Hamburg, Germany
Contact:

Re: NZB Download Deluxe

Post by dynup »

I released v1.1 today! Have fun! ;D
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: NZB Download Deluxe

Post by sander »

dynup wrote:I released v1.1 today! Have fun! ;D

Release notes ...?

(Btw I can't open your pages with my tablet :( )
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: NZB Download Deluxe

Post by sander »

dynup wrote:I released v1.1 today! Have fun! ;D

Release notes ...?

(Btw I can't open your pages with my tablet :( )
Post Reply