[Queue-Script] FakeDetector - early detection of fake videos

Share your scripts or request scripts with specific features.
Forum rules
Please keep the forum clean - one topic per script. Questions not related to a specific script should be posted in Support forum.
hugbug
Developer & Admin
Posts: 7539
Joined: 09 Sep 2008, 11:58
Location: Germany

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

Post by hugbug » 06 Nov 2014, 08:08

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).

blindpet
Posts: 42
Joined: 02 May 2014, 10:27
Contact:

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

Post by blindpet » 06 Nov 2014, 09:40

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?

hugbug
Developer & Admin
Posts: 7539
Joined: 09 Sep 2008, 11:58
Location: Germany

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

Post by hugbug » 06 Nov 2014, 09:53

ScriptPauseQueue is for pp-scripts only.
To adjust queue-scripts on slow systems use option EventInterval.

blindpet
Posts: 42
Joined: 02 May 2014, 10:27
Contact:

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

Post by blindpet » 06 Nov 2014, 10:03

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?

hugbug
Developer & Admin
Posts: 7539
Joined: 09 Sep 2008, 11:58
Location: Germany

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

Post by hugbug » 06 Nov 2014, 10:54

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").

hugbug
Developer & Admin
Posts: 7539
Joined: 09 Sep 2008, 11:58
Location: Germany

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

Post by hugbug » 06 Nov 2014, 17:01

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.

blindpet
Posts: 42
Joined: 02 May 2014, 10:27
Contact:

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

Post by blindpet » 10 Nov 2014, 13:34

Last edited by blindpet on 10 Nov 2014, 13:48, edited 1 time in total.

hugbug
Developer & Admin
Posts: 7539
Joined: 09 Sep 2008, 11:58
Location: Germany

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

Post by hugbug » 10 Nov 2014, 13:46

Thanks for this guide and for all others. Your site is great.

blindpet
Posts: 42
Joined: 02 May 2014, 10:27
Contact:

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

Post by blindpet » 10 Nov 2014, 13:50

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.

prinz2311
Posts: 466
Joined: 08 Dec 2012, 00:03

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

Post by prinz2311 » 10 Nov 2014, 15:17

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest