Hi,ezhik wrote: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.
The files do exist, under "InterDir".ERROR Sun Feb 12 2017 13:48:36 PasswordDetector: Failed 53b4cd4c6a0c4436be44f735708e92e8.part17.rar: [Errno 2] No such file or directory
ERROR Sun Feb 12 2017 13:48:36 FakeDetector: Failed 53b4cd4c6a0c4436be44f735708e92e8.part17.rar: [Errno 2] No such file or directory
Code: Select all
Wed Feb 27 2019 09:30:13 FakeDetector: httplib.InvalidURL: nonnumeric port: 'FFL>7QMfid8v'
INFO Wed Feb 27 2019 09:30:13 FakeDetector: raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
INFO Wed Feb 27 2019 09:30:13 FakeDetector: File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 793, in _get_hostport
INFO Wed Feb 27 2019 09:30:13 FakeDetector: (self.host, self.port) = self._get_hostport(host, port)
INFO Wed Feb 27 2019 09:30:13 FakeDetector: File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 751, in __init__
INFO Wed Feb 27 2019 09:30:13 FakeDetector: self._connection = host, httplib.HTTPConnection(chost)
INFO Wed Feb 27 2019 09:30:13 FakeDetector: File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1386, in make_connection
INFO Wed Feb 27 2019 09:30:13 FakeDetector: h = self.make_connection(host)
INFO Wed Feb 27 2019 09:30:13 FakeDetector: File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1300, in single_request
INFO Wed Feb 27 2019 09:30:13 FakeDetector: return self.single_request(host, handler, request_body, verbose)
INFO Wed Feb 27 2019 09:30:13 FakeDetector: File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1280, in request
INFO Wed Feb 27 2019 09:30:13 FakeDetector: verbose=self.__verbose
INFO Wed Feb 27 2019 09:30:13 FakeDetector: File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1599, in __request
INFO Wed Feb 27 2019 09:30:13 FakeDetector: return self.__send(self.__name, args)
INFO Wed Feb 27 2019 09:30:13 FakeDetector: File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1240, in __call__
INFO Wed Feb 27 2019 09:30:13 FakeDetector: nzbget.editqueue('FileMoveTop', 0, '', [file_id])
INFO Wed Feb 27 2019 09:30:13 FakeDetector: File "/Users/bink/Library/Application Support/NZBGet/scripts/FakeDetector.py", line 347, in sort_inner_files
INFO Wed Feb 27 2019 09:30:13 FakeDetector: sort_inner_files()
INFO Wed Feb 27 2019 09:30:13 FakeDetector: File "/Users/bink/Library/Application Support/NZBGet/scripts/FakeDetector.py", line 418, in main
INFO Wed Feb 27 2019 09:30:13 FakeDetector: main()
INFO Wed Feb 27 2019 09:30:13 FakeDetector: File "/Users/bink/Library/Application Support/NZBGet/scripts/FakeDetector.py", line 457, in <module>
INFO Wed Feb 27 2019 09:30:13 FakeDetector: Traceback (most recent call last):
Code: Select all
Traceback (most recent call last):
File "./FakeDetector.py", line 79, in <module>
bannedMediaExtensions = os.environ.get('NZBPO_BANNEDEXTENSIONS').replace(' ', '').split(',')
AttributeError: 'NoneType' object has no attribute 'replace'
Code: Select all
bannedMediaExtensions = os.environ.get('NZBPO_BANNEDEXTENSIONS').replace(' ', '').split(',')
Code: Select all
BannedExtensions= '.cbr', '.exe', '.com', '.pif', '.scr', '.bat', '.cmd', '.lnk', '.url', '.html', '.htm', '.pdf'
Hi i got now following error in NZBGet 21.1:prinz2311 wrote: ↑11 Jul 2020, 00:45My fork is py2 and 3 compatible. Tested with 3.7+
I added a few other changes:
- added xmlrpclib_to lib (supports timeout, to prevent hanging script when calling nzbget to sort nzb)
- add 'RARBG_DO_NOT_MIRROR.exe' , 'File Renamer' to allowed list
- make check of allow list case insensitive
https://github.com/Prinz23/FakeDetector
Code: Select all
python3 ./FakeDetector.py
Traceback (most recent call last):
File "./FakeDetector.py3", line 74, in <module>
from xmlrpclib_to import ServerProxy
File "/home/snikay/.local/lib/python3.8/site-packages/xmlrpclib_to/__init__.py", line 9, in <module>
import httplib
ModuleNotFoundError: No module named 'httplib'
Code: Select all
python2 ./FakeDetector.py
Traceback (most recent call last):
File "./FakeDetector.py3", line 74, in <module>
from xmlrpclib_to import ServerProxy
ImportError: No module named xmlrpclib_to
Users browsing this forum: No registered users and 44 guests