I'm just now testing this script. I have no doubt this will work for directories created by the un-rar'ing process. Is there a way to keep nzbget itself from creating a directory with the jobtitle?
For example
I have tvshow.s02e12.foo.x264 in the cue.
I have set categories to unrar this to /media/Videos/Television/TVShow/Season 02/
I have the AppendCategoryDir set to no...
When the unpack runs, I still get a new directory named tvshow.s02e12.foo.x264 created within the "Season 02" directory. I would *like* to simply have extracted video in the "Season 02" directory instead.
I undertand that the AppendCategoryDir is not involved here.. that is NOT being created. Excellent. The flatten appears to run correctly as well (will hit a rar here soon with the nested directories problem). But neither of these address the issue as described. This is not a problem, just a druthers. Is there way to suppress this directory creation?