[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.
prinz2311
Posts: 460
Joined: 08 Dec 2012, 00:03

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

Post by prinz2311 » 17 Oct 2014, 09:44

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
Last edited by prinz2311 on 12 Nov 2014, 11:51, edited 2 times in total.

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

Re: Pre Process script for handling Zip files

Post by prinz2311 » 17 Oct 2014, 16:42

Bugfix uploaded. Script didn't filter non nzb Files correctly.

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

Re: Pre Process script for handling Zip files

Post by prinz2311 » 17 Oct 2014, 17:10

Another Bugfix. old nzb's weren't removed correctly from the nzb list

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

Re: Pre Process script for handling Zip files

Post by prinz2311 » 18 Oct 2014, 17:27

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

Sparkyy
Posts: 1
Joined: 11 Nov 2014, 03:31

Re: Pre Process script for handling Zip files

Post by Sparkyy » 11 Nov 2014, 03:36

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!

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

Re: Pre Process script for handling Zip files

Post by prinz2311 » 11 Nov 2014, 14:10

Added support for: .tar, .tar.gz, .tgz, .gz

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

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

Re: Pre Process script for handling Zip files

Post by prinz2311 » 11 Nov 2014, 17:55

Added support for .rar (up to version 4 only)

You need to get also the rarfile Folder now. Download

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

Re: Pre Process script for handling Zip files

Post by prinz2311 » 12 Nov 2014, 10:57

- 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)

hugbug
Developer & Admin
Posts: 7091
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Pre Process script for handling Zip files

Post by hugbug » 12 Nov 2014, 11:06

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?

hugbug
Developer & Admin
Posts: 7091
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Pre Process script for handling Zip files

Post by hugbug » 12 Nov 2014, 11:08

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)?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest