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.
-
MrVideo
- Posts: 47
- Joined: 20 Mar 2019, 05:44
Post
by MrVideo » 20 Mar 2019, 14:05
OK, I've downloaded the script file. Now what do I do with it, i.e., how do I install it? There are no installation instructions in the readme file.
I ask because the scripts directory (Linux) only contains two python files. The zip file contains a directory with more than just the unzip.py file.
-
hugbug
- Developer & Admin
- Posts: 7645
- Joined: 09 Sep 2008, 11:58
- Location: Germany
Post
by hugbug » 20 Mar 2019, 14:24
Unpack everything into a new folder, it should contain script-file(s) and possibly other files and directories.
Then put that folder into ScritpDir.
-
MrVideo
- Posts: 47
- Joined: 20 Mar 2019, 05:44
Post
by MrVideo » 20 Mar 2019, 14:51
The zip contains a directory called "nzbgetpp-master," which I've copied to the installdir scripts location.
How does one now activate that script?
-
MrVideo
- Posts: 47
- Joined: 20 Mar 2019, 05:44
Post
by MrVideo » 24 Mar 2019, 08:15
Didn't work for me. Using the latest v21 beta.
In the Extensions setup page, I added unzip and then selected a couple of rar files that each contain a nzb file. The files were ignored. So, I then changed the setup page to say "nzbgetpp-master/unzip" and tried that; same result. The little timer icon lasts about a second and then nothing.
What do I have to do to get nzbget to unrar the selected rar file and extract the nzb file?
And yes, unzip shows up in the list on the bottom left of the web page.
-
MrVideo
- Posts: 47
- Joined: 20 Mar 2019, 05:44
Post
by MrVideo » 26 Mar 2019, 12:33
Got it to work!!!!!!
Two things were needed to be done. One was my fault and the other a problem with the distro.
1) When I manually entered the unzip name into the web settings, I failed to give the complete name with the ".py". When I used the CHOOSE button this time around, it did that. Silly me for not using the button in the first place. In the order option I added the .py as well.
2) Once the above was done and I tried it again, I got errors about permissions. Sure enough, the distro permissions were wrong for the three .py files, i.e., 664 instead on 775. Once I changed those, then it worked. The README file did not instruct the user to check and fix the permissions.
-
prinz2311
- Posts: 466
- Joined: 08 Dec 2012, 00:03
Post
by prinz2311 » 29 Mar 2019, 15:19
The script has been coded on windows, which simply doesn't support permissions (and doesn't need them). Git on windows simply doesn't do permissions since the filesystem doesn't have linux permissions.
-
MrVideo
- Posts: 47
- Joined: 20 Mar 2019, 05:44
Post
by MrVideo » 30 Mar 2019, 00:41
That is true. But, NZBGet, and its scripts, are meant for multi-platforms. That means all platforms should be considered when releasing software, i.e., for platforms like Linux, permissions (or whatever) should be mentioned in installation instructions, or README files. That said, I should have noticed the permission issue. Since I don't normally run Python scripts, I didn't know that the script is directly run, instead of Python being run and the script supplied to it. So, it didn't stick out. Now I know. A heads up still would have been nice.
In any event, I really appreciate the script, as well as NZBGet. The combination makes downloading usenet files a breeze.
-
Krocko
- Posts: 4
- Joined: 21 Nov 2019, 08:28
Post
by Krocko » 24 Nov 2019, 13:10
This script don't work if a '@' ore ‘€‘ is in the filename.
Is there a way to fix this?
Code: Select all
INFO Sun Nov 24 2019 14:03:26 unzip: UnicodeEncodeError: 'ascii' codec can't encode character u'\u20ac' in position 56: ordinal not in range(128)
INFO Sun Nov 24 2019 14:03:26 unzip: self._fd = open(xfile, 'rb', bufsize)
INFO Sun Nov 24 2019 14:03:26 unzip: File "/volume1/downloads/scripts/rarfile/rarfile.py", line 2385, in __init__
INFO Sun Nov 24 2019 14:03:26 unzip: with XFile(xfile) as fd:
INFO Sun Nov 24 2019 14:03:26 unzip: File "/volume1/downloads/scripts/rarfile/rarfile.py", line 385, in _get_rar_version
INFO Sun Nov 24 2019 14:03:26 unzip: ver = _get_rar_version(self._rarfile)
INFO Sun Nov 24 2019 14:03:26 unzip: File "/volume1/downloads/scripts/rarfile/rarfile.py", line 838, in _parse
INFO Sun Nov 24 2019 14:03:26 unzip: self._parse()
INFO Sun Nov 24 2019 14:03:26 unzip: File "/volume1/downloads/scripts/rarfile/rarfile.py", line 662, in __init__
INFO Sun Nov 24 2019 14:03:26 unzip: rarf = rarfile.RarFile(filename, mode='r')
INFO Sun Nov 24 2019 14:03:26 unzip: File "/volume1/downloads/scripts/unzip.py", line 302, in <module>
INFO Sun Nov 24 2019 14:03:26 unzip: Traceback (most recent call last):
INFO Sun Nov 24 2019 14:03:26 Executing scan-script unzip.py for xxxxxxx@xxxxxx€xxxxxxxx.rar
-
prinz2311
- Posts: 466
- Joined: 08 Dec 2012, 00:03
Post
by prinz2311 » 14 Dec 2019, 01:59
Pushed update. Should fix this unicode (rarlib + python 2) issue on Windows. Also added python 3.7+ support
-
MrVideo
- Posts: 47
- Joined: 20 Mar 2019, 05:44
Post
by MrVideo » 16 Dec 2019, 07:12
There are a lot of characters that are not liked: < > ! $ to name a few.
Who is online
Users browsing this forum: No registered users and 4 guests