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
Post
by prinz2311 » 12 Nov 2014, 11:18
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.
-
hugbug
- Developer & Admin
- Posts: 7645
- Joined: 09 Sep 2008, 11:58
- Location: Germany
Post
by hugbug » 12 Nov 2014, 11:22
What about the other question about splitting the topic?
-
prinz2311
- Posts: 466
- Joined: 08 Dec 2012, 00:03
Post
by prinz2311 » 12 Nov 2014, 11:29
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.

-
hugbug
- Developer & Admin
- Posts: 7645
- Joined: 09 Sep 2008, 11:58
- Location: Germany
Post
by hugbug » 12 Nov 2014, 11:44
Splitted the topic. Fill free to change the topic title and the first post.
-
prinz2311
- Posts: 466
- Joined: 08 Dec 2012, 00:03
Post
by prinz2311 » 31 May 2015, 00:33
Small Bugfix:
- Always only compare the filenames (primarily fixes .gz files)
-
Vald
- Posts: 1
- Joined: 25 Aug 2015, 00:18
Post
by Vald » 25 Aug 2015, 00:25
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
-
prinz2311
- Posts: 466
- Joined: 08 Dec 2012, 00:03
Post
by prinz2311 » 25 Aug 2015, 10:38
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.
-
3rdwheel
- Posts: 1
- Joined: 10 Oct 2015, 03:35
Post
by 3rdwheel » 10 Oct 2015, 03:38
I just installed this script and got exactly the same error as above. Definitely a .zip file, not a .gz
-
prinz2311
- Posts: 466
- Joined: 08 Dec 2012, 00:03
Post
by prinz2311 » 10 Mar 2016, 18:51
Bugfix for windows OS, not taking settings.
-
clayboy
- Posts: 2
- Joined: 25 Aug 2014, 23:03
Post
by clayboy » 11 Apr 2016, 21:31
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
Who is online
Users browsing this forum: No registered users and 5 guests