[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.
prinz2311
Posts: 466
Joined: 08 Dec 2012, 00:03

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

Post by prinz2311 » 01 Feb 2016, 12:04

I think it would be nice to add the signature:

Code: Select all

### QUEUE EVENTS: NZB_ADDED, NZB_DOWNLOADED, FILE_DOWNLOADED
to the script, so that it's not called in case of the 2 new events: NZB_DELETED, URL_COMPLETED were it's exits anyways without doing anything.

ezhik
Posts: 15
Joined: 10 May 2016, 20:33

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

Post by ezhik » 10 May 2016, 20:43

If anybody is running into issues with PasswordDetector or FakeDetector complaining about:

ERROR Post-process-script PasswordDetector.py for **** failed (terminated with unknown status)
ERROR Post-process-script FakeDetector.py for **** failed (terminated with unknown status)

Most likely it is due to temp_file_name issue.

To fix this, open both files and update the following:

From:
# Directory for storing list of tested files
tmp_file_name = os.environ.get('NZBOP_TEMPDIR') + '/PasswordDetector/' + os.environ.get(Prefix + 'NZBID')

To:
# Directory for storing list of tested files
tmp_file_name = os.environ.get('NZBOP_TEMPDIR') + '/PasswordDetector/' + re.sub("\D", "", os.environ.get(Prefix + 'NZBID'))


Same for Fake Detector:

From:
# Directory for storing list of tested files
tmp_file_name = os.environ.get('NZBOP_TEMPDIR') + '/FakeDetector/' + os.environ.get(Prefix + 'NZBID')

to:
# Directory for storing list of tested files
tmp_file_name = os.environ.get('NZBOP_TEMPDIR') + '/FakeDetector/' + re.sub("\D", "", os.environ.get(Prefix + 'NZBID'))


PS. Encountered this with 16.4.

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

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

Post by hugbug » 11 May 2016, 07:45

@ezhik:
Why would it be necessary?
"os.environ.get(Prefix + 'NZBID')" by definition contains only digits.

ezhik
Posts: 15
Joined: 10 May 2016, 20:33

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

Post by ezhik » 11 May 2016, 13:56

You would think so...

But in my case it was returning digits + characters.

Depending which scripts goes first (the first in order would complete OK), but the next one would return characters after the NZBID.



Both scripts were being executed in order, fakedetector and passworddetector and because both of them were using tmp_file_name variable it appears that was causing issues.

That's the only work around that I found.

For example it would be like /fakedetector/181050ector.py or /passworddetector/181050or.py

Something along those lines.

konubywy
Posts: 16
Joined: 05 Nov 2015, 15:07

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

Post by konubywy » 26 Aug 2016, 20:34

This script is not running correctly for me and I'm having difficulty seeing exactly where the problem may lie. I have a movie file that I know to contain both a media file and an executable file. The script does detect this and throws up a WARNING but fails to change the status to BAD/FAILURE. Without this FAILURE/BAD status nzbget continues to download the file when the expected behavior is to instead have it marked as FAILURE/BAD and remove it from the download queue. The relevant nzbget.log section is as follows:

Fri Aug 26 13:14:05 2016 INFO FakeDetector: Found executable MOVIENAME.2016.LIMITED.DVDRip.x264-XURl/Setup/Setup.exe
Fri Aug 26 13:14:05 2016 WARNING FakeDetector: Download has media files and executables
Fri Aug 26 13:14:05 2016 DETAIL Successfully downloaded MOVIENAME.2016.LIMITED.DVDRip.x264-XURl.cp(ttxxxxxxx)
Fri Aug 26 13:14:05 2016 DETAIL Successfully downloaded MOVIENAME.2016.LIMITED.DVDRip.x264-XURl.cp(ttxxxxxxx)
Fri Aug 26 13:14:05 2016 DETAIL Successfully downloaded MOVIENAME.2016.LIMITED.DVDRip.x264-XURl.cp(ttxxxxxxx)
Fri Aug 26 13:14:05 2016 DETAIL Successfully downloaded MOVIENAME.2016.LIMITED.DVDRip.x264-XURl.cp(ttxxxxxxx)
Fri Aug 26 13:14:05 2016 DETAIL Successfully downloaded MOVIENAME.2016.LIMITED.DVDRip.x264-XURl.cp(ttxxxxxxx)

...and so on until the file has completely downloaded and successfully run all other scripts; i.e., Par: SUCCESS Unpack: SUCCESS PasswordDetector: SUCCESS FakeDetector: SUCCESS nzbToCouchPotato: SUCCESS

Any ideas as to why I see the WARNING flag but the script fails to add the FAILURE/BAD flag?

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

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

Post by hugbug » 26 Aug 2016, 20:50

Which version of nzbget? Can you please try the latest testing version, there was a fix in this regard.

konubywy
Posts: 16
Joined: 05 Nov 2015, 15:07

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

Post by konubywy » 26 Aug 2016, 21:32

I was on the Stable branch and updated to the Testing branch and the problem seems to have been fixed. Thank you for the "fixed hanging after marking as BAD from queue script" fix. It was driving me bonkers :evil: :arrow: :D

dagoob
Posts: 21
Joined: 15 Jan 2016, 23:27

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

Post by dagoob » 27 Nov 2016, 20:13

I suspect that if the new BannedExtensions setting is left blank this detects files with no extension? I had a couple of downloads marked bad which were fine other than being obfuscated filenames...

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

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

Post by hugbug » 27 Nov 2016, 20:59

Can you please send me an example nzb? nzbget@gmail.com.

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

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

Post by hugbug » 27 Nov 2016, 21:49

Fixed.
(no need to send example nzb)

Post Reply

Who is online

Users browsing this forum: No registered users and 28 guests