Unrar .rar files in .rar archives

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.
JonM
Posts: 4
Joined: 25 Apr 2018, 09:46

Re: Unrar .rar files in .rar archives

Post by JonM » 26 Apr 2019, 17:51

no worries my dude....

If you're using categories you'll need to set the script in the categories settings too, could be worth a check?

As a side note, I've actually disabled this script now. I found that the number of downloads that failed because of nested .rar files without the script was actually much lower than the number of good downloads that this script caused to fail.

I'm planning on having a fiddle around with the script at some point and doing some testing to see if I can get it improved but for now I've got it switched off. Might get a chance this weekend actually. Not sure what's happened to the original author, seems to have not been here a while and I don't fully understand everything that's going on.

I'm really hoping that this will eventually make it into the nzbget native features as it's not exactly an uncommon occurrence to have the nested packages.

Anyone heard anything?

Cheers,
Jon
Attachments
ExtendedUnrar.py
(6.9 KiB) Downloaded 29 times

ahughes03
Posts: 3
Joined: 26 Apr 2019, 17:11

Re: Unrar .rar files in .rar archives

Post by ahughes03 » 26 Apr 2019, 18:08

UPDATE: I think Jon's the man! His script worked (for me) in a FreeNAS Jail environment without issues. I've tested across downloads that needed nested unpacking and downloads that don't, and his script seems to work fine for me.

To be transparent:

NZBGet: Version 20.0_1 (FreeBSD - pkg install version)
FreeNAS Jail: 11.2-RELEASE
FreeNAS: FreeNAS-11.2-RELEASE-U1 (slow to update, given the track-record)

Thanks Jon!

I was able to get the modified script working, and tested it against a file that needed the nested rar's unpacked (worked sucessfully) and also against a file that wouldn't have needed the script (no nested rars)- in this case, the script exited gracefully and my file manager was able to process the file afterwards.

What kind of errors were you seeing- as in, how was the script causing the good downloads to fail? I'll have to watch my files closely to see if this also happens to me.

Bun
Posts: 1
Joined: 28 Apr 2019, 05:32

Re: Unrar .rar files in .rar archives

Post by Bun » 28 Apr 2019, 05:49

Seems a lot of people are running into nested rar files lately... :)

I too found the old version of this script about a week ago and spent some time fixing it up based on issues others on this thread have found and fixed. I've also cleaned it up a fair bit and removed a bunch of the older nzbget script-isms. Also removed some totally unnecessary bits (eg. _brokenlog.txt check, etc etc.) I run nzbget on a Linux box so I also made sure the script could handle case-sensitive filenames like .rar and .RAR.

I've been running it for about a week now and haven't had any issues. No guarantees of course! :D I don't use Windows so I have no idea if it works there or not. If you've used the original version of this script, please pay attention to the new default for the "RarExtensions" setting -- best to use the default.

Maybe this inspires somebody else to improve it even further. Hope it helps somebody out...

Edit... I might add that if you want to change the unrar options, you'll have to dig into the code still. I use the options "unrar e -idp -ai -o-" with unrar 5.71.
Attachments
ExtendedUnrar.py
(5.99 KiB) Downloaded 39 times

manifest3r
Posts: 1
Joined: 28 Apr 2019, 06:39

Re: Unrar .rar files in .rar archives

Post by manifest3r » 28 Apr 2019, 06:42

Bun wrote:
28 Apr 2019, 05:49
Seems a lot of people are running into nested rar files lately... :)

I too found the old version of this script about a week ago and spent some time fixing it up based on issues others on this thread have found and fixed. I've also cleaned it up a fair bit and removed a bunch of the older nzbget script-isms. Also removed some totally unnecessary bits (eg. _brokenlog.txt check, etc etc.) I run nzbget on a Linux box so I also made sure the script could handle case-sensitive filenames like .rar and .RAR.

I've been running it for about a week now and haven't had any issues. No guarantees of course! :D I don't use Windows so I have no idea if it works there or not. If you've used the original version of this script, please pay attention to the new default for the "RarExtensions" setting -- best to use the default.

Maybe this inspires somebody else to improve it even further. Hope it helps somebody out...

Edit... I might add that if you want to change the unrar options, you'll have to dig into the code still. I use the options "unrar e -idp -ai -o-" with unrar 5.71.
Bro...I was just in the middle of trying to implement the script and not even 10 minutes after you posted I see your post! If that's not good timing I don't know what is. Thanks! It's working great :)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests