Page 3 of 8

Re: [Queue-Script] FakeDetector - early detection of fake vi

Posted: 06 Nov 2014, 08:08
by hugbug
Short answer: make it first.

Long answer: FakeDetector is both queue- and post-processing script. As queue-script it detects fakes during download. In that case since most other pp-scripts do not work as queue-scripts the order isn't important. However FakeDetector works also after the download and unpack are completed and checks the downloaded files. In that case it's important to execute it before the files are moved elsewhere (by VideoSort or other script).

Re: [Queue-Script] FakeDetector - early detection of fake vi

Posted: 06 Nov 2014, 09:40
by blindpet
Thanks hugbug, another question, is it important to enable ScriptPauseQueue when using fakedetector for low end systems like the Raspberry Pi or Synology NAS? Or is that only for post scripts (I know you said FakeDetector runs as a postscript as well so that's why I'm asking) or is it just best practice to enable this on all low end systems?

Re: [Queue-Script] FakeDetector - early detection of fake vi

Posted: 06 Nov 2014, 09:53
by hugbug
ScriptPauseQueue is for pp-scripts only.
To adjust queue-scripts on slow systems use option EventInterval.

Re: [Queue-Script] FakeDetector - early detection of fake vi

Posted: 06 Nov 2014, 10:03
by blindpet
OK, even though you said FakeDetector also runs as a post-processing script as well?

Have you done any tests with the EventInterval on your low end linux box to see which timing range is most appropriate?

Re: [Queue-Script] FakeDetector - early detection of fake vi

Posted: 06 Nov 2014, 10:54
by hugbug
When download is completed the downloading is paused (if ScriptPauseQueue is active) and then all pp-scripts are executed (incl. FakeDetector if it's in PostScript).

When Queue-scripts are executed (incl. FakeDetector if it is active via option QueueScript or PostScript) the downloading is not paused.

EventInterval limits how often the queue-scripts are allowed to be executed. At the end it's the matter of time wasted for download of a fake. If you don't mind to spend 5 minutes downloading a fake set the EventInterval to 300 (seconds). If you want to stop the download as soon as possible keep EventInterval=0. In that case queue-scripts are executed after each rar-file. If nzb consists of small rar-files, which can be downloaded very fast (that of course depends on download speed too), then the queue-scripts may work all the time.

On my linux box just staring up (any) python script takes 5 seconds when that happens during download (when CPU is almost fully loaded). Then the script takes some time to execute (calling unrar, etc.), assume it takes another 5 seconds for that. So if EventInterval is set to a value less than 10 seconds it's the same as setting it to 0 (because intervals are measured between starting of scripts, not between termination and next start).

Summary: if you have very fast internet connection and the device can saturate it then set EventInterval=-1 to disable fake detection during download. The script will be executed after download (and before unpack). The slower your download speed is the more important it is to abort as soon as possible. Set EventInterval accordingly (or set it to "0").

Re: [Queue-Script] FakeDetector - early detection of fake vi

Posted: 06 Nov 2014, 17:01
by hugbug
blindpet wrote:hugbug, can you stick this on sourceforge so it's easier to grab for installing on linux?
http://sourceforge.net/projects/nzbget/files/ppscripts/
Uploaded and updated the first post.

Re: [Queue-Script] FakeDetector - early detection of fake vi

Posted: 10 Nov 2014, 13:34
by blindpet

Re: [Queue-Script] FakeDetector - early detection of fake vi

Posted: 10 Nov 2014, 13:46
by hugbug
Thanks for this guide and for all others. Your site is great.

Re: [Queue-Script] FakeDetector - early detection of fake vi

Posted: 10 Nov 2014, 13:50
by blindpet
My pleasure, it's the least I can do for the awesome usenet community and its developers, hopefully it alleviates some of the tech support questions you get so you can focus on coding ;).

Did you see my question about the FailureLink script I posted in the other thread?

The question was whether FailureLink should be above FakeDetector in the ScriptOrder.

Re: [Queue-Script] FakeDetector - early detection of fake vi

Posted: 10 Nov 2014, 15:17
by prinz2311
One addition to the Guide:

Combined Queue/PostProcessing Scripts like: FakeDetector, PasswordDetector don't need to be selected as Queue Script if they are selected as PostProcessing Script.

So if FakeDetector, PasswordDetector is only set as PostProcessing Script for the Category they will automatically also run as a Queue Script for a download in this Category.

This allows the user to activate these Scripts per Category, instead running them globally as Queue Scripts on all Categories.