Nested rars don't unpack to parent folder

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
MKANET
Newbie
Newbie
Posts: 18
Joined: December 14th, 2013, 9:16 pm

Nested rars don't unpack to parent folder

Post by MKANET »

Once in a while, after extracting nested rars and cleanup, I end up having to go two folders deep to get to my video file. So, I end up having to manually move it to the parent folder; then, delete the unnecessary child folder . Is there a setting that makes SABnzbd smart enough to move all extracted contents to the parent folder; then, get rid of any unnecessary subdirectories? I looked in the settings; but, didn't see anything obvious. I searched online for a solution; but, the closest thing I could find was what seems to be the opposite of what I'm looking for.
https://bugs.launchpad.net/sabnzbd/+bug/579918

EDIT: While I know this isn't a universal setting that everyone would want; it is something that people would want to do for movie/TV files. Maybe if there isn't a setting for this, someone could suggest a post-processing script suggestion either in Windows batch or bash. Im guessing I'm not the first person who's wanted to do this.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Nested rars don't unpack to parent folder

Post by shypike »

SABnzbd does some attempt to remove unnecessary folders.
It will remove a first level folder that contains just one folder.
(That is, when temp folder renaming isn't disabled.
Disabling it is recommended on Windows due to the paranoid attitude Windows has regarding folder renaming)

BTW: "Generic Sort" might solve the issue for you (Config->Sorting).
MKANET
Newbie
Newbie
Posts: 18
Joined: December 14th, 2013, 9:16 pm

Re: Nested rars don't unpack to parent folder

Post by MKANET »

Hi skypike,

Thanks for the quick reply! I have a temp directory already defined for SABnzbd (installed on Windows); which seems to be working.

I am not familiar with sorting very much. All I know is I dont need/want auto sorting for TV/Movies; since I have a post-processing script for that.

What specifically do I need to do in Generic Sort to attempt to resolve this kind of issue (so files are put in one level deep instead of two levels deep)?

Thanks again!
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Nested rars don't unpack to parent folder

Post by shypike »

Generic sorting works best for single file MKV style downloads.
Use something like %dn.%ext or %dn/%dn.%ext (the latter will create a folder named after the NZB name).
MKANET
Newbie
Newbie
Posts: 18
Joined: December 14th, 2013, 9:16 pm

Re: Nested rars don't unpack to parent folder

Post by MKANET »

Currently, under "Generic Sorting" I have the below string in the "sort string" field for "default" category. Im not even sure if it's enabled or not.
%title (%y)/%title (%y).%ext

So, if I just change that field to:
%dn/%dn.%ext

Would it prevent the issue I mentioned? Should I expect any other different behavior? Is there anything else I need to do in order to enable generic sorting?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Nested rars don't unpack to parent folder

Post by shypike »

Just try. I'm sometimes surprised by what Sorting does.
(I didn't write this part.)
Post Reply