test nzb before download

Get help with all aspects of 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.
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: test nzb before download

Post by sander »

warthog wrote: Regarding phyber's patch, I have some familiarity with python, but I'm now a little lost. Is there a way to apply the patch drectly with python or some other utility in a *nix environment or does the code need to be added manually to the script from sander?
You need the 'patch' command. Available on Linux, probably Mac, I don't know Windows.

See http://linux.die.net/man/1/patch
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
duerra
Newbie
Newbie
Posts: 2
Joined: April 19th, 2011, 3:06 am

Re: test nzb before download

Post by duerra »

Hey sander - do you still have this script around?  I'd really be interested in trying it out.  I may also be able to take a look at the locking issue you were experiencing if that's still an issue.  Thanks :)
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: test nzb before download

Post by sander »

duerra wrote: Hey sander - do you still have this script around?  I'd really be interested in trying it out.  I may also be able to take a look at the locking issue you were experiencing if that's still an issue.  Thanks :)
Yes, it's still on http://www.appelboor.com/sander/nzb-checker-threaded.py (I had to restart the webserver)
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Comfun
Newbie
Newbie
Posts: 3
Joined: April 29th, 2011, 7:11 am

Re: test nzb before download

Post by Comfun »

Hello, I have been looking for something like this since few months.
Is that possible to get the httpd / download link available again please ?

I'm planning to use it to verify the completness of my posts and automatcly repost losts parts during upload ( thanks to astraweb servers^^ ).
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: test nzb before download

Post by sander »

Comfun wrote: Hello, I have been looking for something like this since few months.
Is that possible to get the httpd / download link available again please ?

I'm planning to use it to verify the completness of my posts and automatcly repost losts parts during upload ( thanks to astraweb servers^^ ).
It's up again.
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Comfun
Newbie
Newbie
Posts: 3
Joined: April 29th, 2011, 7:11 am

Re: test nzb before download

Post by Comfun »

Thanks you very much it works like a charm.
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: test nzb before download

Post by sander »

Comfun wrote: Thanks you very much it works like a charm.

You mean the script? What are your speed results? Check a full DVD in one minute?
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Comfun
Newbie
Newbie
Posts: 3
Joined: April 29th, 2011, 7:11 am

Re: test nzb before download

Post by Comfun »

I didn't checked a DvD yet , most of the files I check are around 450 MiB size and sometimes around 3GiB.
The speed is enough with 10 ports.
I would say around 1/2min for a 3GiB post size.

And a few seconds for 250/450 MiB.

I'm using it mainly for check parts completeness on usenet server 5min after the post had been sent, so my script can repost if the newserver had some problem and have too many incomplete.

The idea would be to repost only the incomplete part and not the whole stuff, but I will look into that later.


I only encoutered a small problem 1 time on 50 try, the script blocked during the execution without any error on the log file used as outpout of the command.
duerra
Newbie
Newbie
Posts: 2
Joined: April 19th, 2011, 3:06 am

Re: test nzb before download

Post by duerra »

Thank you sir :)
pobox
Full Member
Full Member
Posts: 104
Joined: May 3rd, 2008, 6:11 pm

Re: test nzb before download

Post by pobox »

Servers reselling 'Readnews' often return inaccurate responses to the STAT command.

- Sending STAT if GROUP is not sent first - '412 Not in a newsgroup'.
- Nonsensical responses - '501 newsgroup'.
- Inaccurate responses - '430 No such article' but the article can be retrieved.
- Delayed responses - '223 0 status' after client waits 30 seconds or more.
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: test nzb before download

Post by sander »

pobox wrote: Servers reselling 'Readnews' often return inaccurate responses to the STAT command.

- Sending STAT if GROUP is not sent first - '412 Not in a newsgroup'.
- Nonsensical responses - '501 newsgroup'.
- Inaccurate responses - '430 No such article' but the article can be retrieved.
- Delayed responses - '223 0 status' after client waits 30 seconds or more.
Did you use my script with such a Readnews-server? Reason why I ask: my script does send a GROUP command first, so before the STAT command.

If STAT does not work, does HEAD work?
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
pobox
Full Member
Full Member
Posts: 104
Joined: May 3rd, 2008, 6:11 pm

Re: test nzb before download

Post by pobox »

No I didn't use the script, I used standalone programs and telnet.

HEAD works better than STAT but all commands with msg-id for old articles are too slow on some Readnews servers.

Do you have access to a Readnews server?  Some are slower for STAT, HEAD, BODY, ARTICLE, and more broken for STAT than others.

One standalone program allows 10 threads but I'm dying waiting for it to finish checking.
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: test nzb before download

Post by sander »

Can you use my script and report back what the result is?
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
krackt
Newbie
Newbie
Posts: 37
Joined: December 29th, 2010, 7:15 am

Re: test nzb before download

Post by krackt »

The script doesn't work for me when using my news server us.thundernews.com. It returns a login error and I'm positive that the login details are correct.

Also cannot get a successful login using netcat but have no problem using Sab to login... strange.

Do you have any suggestions on how to debug this further?

Script output:

Code: Select all

Wait until threads are done checking all articles, which can take a few minutes ...
NNTP base connection OK

trying to logon ...
command is: authinfo user tnxxxxxxxx NNTP base connection OK
trying to logon ...command is: authinfo user tnxxxxxxxx response on command: 
time-out talking to NNTP server, waiting for reaction, or something else wrong with reaction
command is: authinfo pass xxxxxxxxxx response on command: 
time-out talking to NNTP server, waiting for reaction, or something else wrong with reaction
command is: group alt.binaries.test response on command: 
time-out talking to NNTP server, waiting for reaction, or something else wrong with reaction
command is: group alt.binaries.test response on command: 
time-out talking to NNTP server, waiting for reaction, or something else wrong with reaction
Error, NNTP connection is not working. Username/Password needed or incorrect?
Last edited by krackt on June 26th, 2011, 7:25 am, edited 1 time in total.
SABnzbd 0.7.17 JCFP Ubuntu ppa
Precise 12.04.4 LTS x86_64
XBMC Gotham 14.0-alpha1 Git:577494a 20140406
ASRock ION 330-BD Intel Dual Core Atom 1.6GHz
4GB RAM | HDMI Display | Analogue Audio | Flirc IR
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: test nzb before download

Post by sander »

@krackt:

first make sure you can logon using netcat.

seconde, can you post the full input and output of the command, including the line invoking the script?
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Locked