Page 2 of 5

Re: Pre Process script for handling Zip files

Posted: 12 Nov 2014, 11:18
by prinz2311
rarfiles module is just a wrapper for unrar, rar... I could simply set the init parameter of the module to that parameter.

Code: Select all

# Set to full path of unrar.exe if it is not in PATH
rarfile.UNRAR_TOOL = "unrar"
So I could add:

Code: Select all

# Set to full path of unrar.exe if it is not in PATH
rarfile.UNRAR_TOOL = os.environ['NZBOP_UNRARCMD']
But this has one problem: If the user uses a proxy script, it could make problems because of possible additional switches in it.

Re: Pre Process script for handling Zip files

Posted: 12 Nov 2014, 11:22
by hugbug
What about the other question about splitting the topic?

Re: Pre Process script for handling Zip files

Posted: 12 Nov 2014, 11:29
by prinz2311
hugbug wrote:I can split the topic from your first post. Then you can change the title and the first post if necessary. Should I do that or just change the title? What title then?
Yeah may splitting the topic is better, since there is not much left of the original script. Title... Good question, I currently can't think of the good name. :oops:

Re: [Scan-Script] Add packed nzb-files to queue (zip, tar.gz

Posted: 12 Nov 2014, 11:44
by hugbug
Splitted the topic. Fill free to change the topic title and the first post.

Re: [Scan-Script] Add packed nzb-files to queue

Posted: 31 May 2015, 00:33
by prinz2311
Small Bugfix:
- Always only compare the filenames (primarily fixes .gz files)

Re: [Scan-Script] Add packed nzb-files to queue

Posted: 25 Aug 2015, 00:25
by Vald
Hi there. Please forgive my newness but I'm not sure where to turn. I've done a fair bit of searching and cannot find an answer.

I've put the script in the proper folder (NZBGet sees it) and set it up as a scan script. When it executes, though, the file (eg filename.nzb.zip) gets appended with a .processed extension and I get these messages in the log:

info Mon Aug 24 2015 20:04:35 unzip: SyntaxError: invalid syntax
info Mon Aug 24 2015 20:04:35 unzip: ^
info Mon Aug 24 2015 20:04:35 unzip: raise IOError, 'Not a gzipped file'
info Mon Aug 24 2015 20:04:35 unzip: File "C:\ProgramData\NZBGet\scripts\nzbgetpp-master\unzip.py", line 53

Nothing further happens. Has anyone encountered this problem or does anyone have any suggestions?

Thanks!

Vald

Re: [Scan-Script] Add packed nzb-files to queue

Posted: 25 Aug 2015, 10:38
by prinz2311
That means some file was processed as a gzipped file (.gz) but isn't really a valid gzipped file and only has the wrong extension .gz or is a broken .gz file.

Re: [Scan-Script] Add packed nzb-files to queue

Posted: 10 Oct 2015, 03:38
by 3rdwheel
I just installed this script and got exactly the same error as above. Definitely a .zip file, not a .gz

Re: [Scan-Script] Add packed nzb-files to queue

Posted: 10 Mar 2016, 18:51
by prinz2311
Bugfix for windows OS, not taking settings.

Re: [Scan-Script] Add packed nzb-files to queue

Posted: 11 Apr 2016, 21:31
by clayboy
how do i fix this error i'm getting ?
on Win 10 v17 Nzbget


unzip: ImportError: No module named rarfile
unzip: import rarfile.rarfile as rarfile
unzip: File "D:\NZBGet\Scripts\unzip.py", line 16, in <module>
unzip: Traceback (most recent call last):
Executing scan-script unzip.py for Mannequin %281987%29.rar