[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.
hugbug
Developer & Admin
Posts: 7091
Joined: 09 Sep 2008, 11:58
Location: Germany

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

Post by hugbug » 11 Apr 2016, 21:37

You need folder rarfile. At best download the script with required libraries using button "Download zip" on github, then unpack it into scripts directory of nzbget.

clayboy
Posts: 2
Joined: 25 Aug 2014, 23:03

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

Post by clayboy » 13 Apr 2016, 05:16

that didn't work

prinz2311
Posts: 460
Joined: 08 Dec 2012, 00:03

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

Post by prinz2311 » 14 Jul 2016, 15:32

Updated rarfile lib. Now supports rar 5 file format.

jeeperv6
Posts: 2
Joined: 21 Aug 2016, 02:31

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

Post by jeeperv6 » 21 Aug 2016, 02:57

Hi,

I've got 2 VM's running NZBGet. I added this script as some of my NZB sources are rar'd and was tired of manually un-raring into the import folder.

On VM #1 this script runs flawlessly. On VM #2, I get the same errors as quite a few people.

Both VM's are Windows 7 Ultimate, 2gb ram, 40gb hard drives. Both have NZBGet & Python installed.

Is there anything else this script requires to run other than NZBGet & Python? I've compared both VM's and the software/setup is identical. The only difference is VM #1 has the videosort extension and VM #2 doesn't.

I know I could clone the working VM #1, but I'm thinking there's something missing on VM #2 and that could be what is causing other people to have the same errors as me.

Thanks for any light you can shed on this. The script works great (on VM #1 anyway)!

jeeperv6
Posts: 2
Joined: 21 Aug 2016, 02:31

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

Post by jeeperv6 » 06 Sep 2016, 03:57

After a little bit more experimenting, I found out that this script doesn't run properly under certain versions of Python.

VM #1 had Python 2.7.10 installed and the script worked 100%.

VM #2 had Python 2.7.12 installed and the script gave me the same errors are some people had previously mentioned.

I am guessing somewhere between version .10 & version .12 something got changed in Python.

For anyone who wants to run this script, I would suggest checking which version of Python you are running.

Otherwise, under Python 2.7.10 this script does the job beautifully. Thank you to the script creator! :)

prinz2311
Posts: 460
Joined: 08 Dec 2012, 00:03

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

Post by prinz2311 » 14 Sep 2016, 01:24

I tried it with 2.7.12. Works for me.

freschnek
Posts: 2
Joined: 09 Jan 2017, 16:58

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

Post by freschnek » 09 Jan 2017, 17:04

Hi

I got the following error when i add a packed nzb-file. Phyton 2.7.13 on Windowshomeserver 2011 installed.
....
Mon Jan 09 2017 17:54:50 unzip: rarfile.rarfile.RarCannotExec: Unrar not installed? (rarfile.UNRAR_TOOL='unrar')
INFO Mon Jan 09 2017 17:54:50 unzip: raise RarCannotExec("Unrar not installed? (rarfile.UNRAR_TOOL=%r)" % UNRAR_TOOL)
INFO Mon Jan 09 2017 17:54:50 unzip: File "J:\ServerFolders\Downloads\scripts\rarfile\rarfile.py", line 2800, in custom_popen
INFO Mon Jan 09 2017 17:54:50 unzip: p = custom_popen(cmd)
INFO Mon Jan 09 2017 17:54:50 unzip: File "J:\ServerFolders\Downloads\scripts\rarfile\rarfile.py", line 877, in _extract
INFO Mon Jan 09 2017 17:54:50 unzip: self._extract(fnlist, path, pwd)
INFO Mon Jan 09 2017 17:54:50 unzip: File "J:\ServerFolders\Downloads\scripts\rarfile\rarfile.py", line 811, in extractall
INFO Mon Jan 09 2017 17:54:50 unzip: rarf.extractall(path = dir, members = rf)
INFO Mon Jan 09 2017 17:54:50 unzip: File "J:\ServerFolders\Downloads\scripts\unzip.py", line 263, in <module>
INFO Mon Jan 09 2017 17:54:50 unzip: Traceback (most recent call last):

freschnek
Posts: 2
Joined: 09 Jan 2017, 16:58

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

Post by freschnek » 10 Jan 2017, 11:15

now it works

rarfile.rarfile.RarCannotExec: Unrar not installed? (rarfile.UNRAR_TOOL='unrar') replace unrar with the full Path of the unrar tool.

zaemon
Posts: 2
Joined: 24 Aug 2018, 08:22

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

Post by zaemon » 24 Aug 2018, 08:31

Thanks for this script.

As others I have the "gzipped" error message if though I'm trying to process a rar file. I'm running Windows 10.

Any thoughts?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest