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

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: 38
Joined: 20 Mar 2019, 05:44

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

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: 7401
Joined: 09 Sep 2008, 11:58
Location: Germany

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

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: 38
Joined: 20 Mar 2019, 05:44

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

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: 38
Joined: 20 Mar 2019, 05:44

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

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: 38
Joined: 20 Mar 2019, 05:44

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

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: 462
Joined: 08 Dec 2012, 00:03

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

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: 38
Joined: 20 Mar 2019, 05:44

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

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest