Page 1 of 5

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

Posted: 17 Oct 2014, 09:44
by prinz2311
I did rewrite the unzip.py script. It now supports all Parameters:

- CATEGORY, PRIORITY, ADDTOP, PAUSED (NZBGet 13+)
- DUPEKEY, DUPESCORE, DUPEMODE (NZBGET 14 r1146+)

- only nzbs are extracted
- parameters from the zip are saved to a info file in the tmp Folder (file is deleted after the nzb's are imported)

- support for: .zip, .tar, .tar.gz, .tgz, .gz, .rar

You can get it from my GitHub or Direct Download from GitHub

Re: Pre Process script for handling Zip files

Posted: 17 Oct 2014, 16:42
by prinz2311
Bugfix uploaded. Script didn't filter non nzb Files correctly.

Re: Pre Process script for handling Zip files

Posted: 17 Oct 2014, 17:10
by prinz2311
Another Bugfix. old nzb's weren't removed correctly from the nzb list

Re: Pre Process script for handling Zip files

Posted: 18 Oct 2014, 17:27
by prinz2311
Small enhancement:

- Remove old nzb entries from the tmp file permanently (or delete it if it's empty after removal of the old entries)
- Additional check that nzb_list is not empty

Re: Pre Process script for handling Zip files

Posted: 11 Nov 2014, 03:36
by Sparkyy
Thank you for creating this script to unpack zip files and have a question for you or anyone that could resolve this issue.

Is there any way to add the extension .gz as a file that could be extracted besides .zip?

If this can't be done, it is not a big deal. More of a, want to see if this can be, type of thing and since I cannot code in any language, figured I would ask here.

Thanks!

Re: Pre Process script for handling Zip files

Posted: 11 Nov 2014, 14:10
by prinz2311
Added support for: .tar, .tar.gz, .tgz, .gz

You can get it from my GitHub or Direct Download from GitHub

Re: Pre Process script for handling Zip files

Posted: 11 Nov 2014, 17:55
by prinz2311
Added support for .rar (up to version 4 only)

You need to get also the rarfile Folder now. Download

Re: Pre Process script for handling Zip files

Posted: 12 Nov 2014, 10:57
by prinz2311
- only unpack .nzb's from .gz files
- updated the Readme

Maybe someone should change the title of the Thread, since now the Script supports much more Archivetypes (see Readme)

Re: Pre Process script for handling Zip files

Posted: 12 Nov 2014, 11:06
by hugbug
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?

Re: Pre Process script for handling Zip files

Posted: 12 Nov 2014, 11:08
by hugbug
prinz2311 wrote:Added support for .rar (up to version 4 only)
You need to get also the rarfile Folder now. Download
Wouldn't it be better to use installed "unrar" (via NZBOP_UNRARCMD)?