its working. i tested it a couple of minutes ago with linux.chocoprinsje wrote: ↑16 Aug 2019, 17:52i tried everything but it didnt work anymore
can someone help please
i installed and installed python but the script is not working
i tried everything
I get the same error with a QNAP. There is only python3 available and so I can't use the python2 script, which works great on a windows machine.abc08154711 wrote: ↑12 Mar 2019, 20:47Python 3 drops this errors:
Executing scan-script pfftn_3x.py for something{{password}}.nzb
pfftn_3x: File "/opt/nzbget/scripts/pfftn_3x.py", line 81
pfftn_3x: print('[NZB] NZBPR_*Unpack:Password=', p.group(1), sep='')
pfftn_3x: ^
pfftn_3x: SyntaxError: invalid syntax
Code: Select all
sudo rm python*
Code: Select all
sudo cp /volume1/@appstore/python/bin/python* /usr/bin/
Code: Select all
python --version
I had the same error. I'm using a qnap nas with python 3.8.xabc08154711 wrote: ↑12 Mar 2019, 20:47Python 3 drops this errors:
Executing scan-script pfftn_3x.py for something{{password}}.nzb
pfftn_3x: File "/opt/nzbget/scripts/pfftn_3x.py", line 81
pfftn_3x: print('[NZB] NZBPR_*Unpack:Password=', p.group(1), sep='')
pfftn_3x: ^
pfftn_3x: SyntaxError: invalid syntax
Code: Select all
p = re.match( r'^.*?\{\{[ ]?(.*?)[ ]?\}\}', fwp)
f = re.sub( r'[ .]?{\{[ ]?(.*?)[ ]?\}\}', '', fwp)
if p:
print('[NZB] NZBPR_*Unpack:Password=' + p.group(1))
# Next line can be removed if wanted or set to [DETAIL] logging
#print('[INFO] p:', p.group(1), sep='')
if f:
print('[NZB] NZBNAME=' + f)
# Next line can be removed if wanted or set to [DETAIL] logging
#print('[INFO] f:', f, sep='')
sys.exit(POSTPROCESS_SUCCESS)
Users browsing this forum: No registered users and 37 guests