Beta 3 sorting, renaming, cleanup almost there!

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
jm9843
Newbie
Newbie
Posts: 4
Joined: December 11th, 2009, 4:03 pm

Beta 3 sorting, renaming, cleanup almost there!

Post by jm9843 »

Hi and thanks developers for this amazing program.

I installed the new beta 3 last night and it appears to resolve any issues that I was having with repairing, sorting, and renaming with beta 1.

However, the cleanup didn't go properly.  While the .par2 files were deleted after extraction/sorting/renaming, the .rar and .r00 to .rXX files were moved to the destination directory and still remain.  I have the default "delete" option selected for post-processing.

Is this a known issue or can someone provide a simple Windows script to delete these such files?

Thanks.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Beta 3 sorting, renaming, cleanup almost there!

Post by shypike »

This usually happens when unrelated files are in the NZB file.
SABnzbd will only remove files of which it knows it can delete them.
(So, par2 files that have been used to verify and rar's that have been unpacked).
You can set a clean-up extension list (e.g. .par2, .rar) in Config->General.
jm9843
Newbie
Newbie
Posts: 4
Joined: December 11th, 2009, 4:03 pm

Re: Beta 3 sorting, renaming, cleanup almost there!

Post by jm9843 »

shypike wrote: This usually happens when unrelated files are in the NZB file.
SABnzbd will only remove files of which it knows it can delete them.
(So, par2 files that have been used to verify and rar's that have been unpacked).
You can set a clean-up extension list (e.g. .par2, .rar) in Config->General.
Thanks for the info and suggestion.  In the clean-up extension list, is it possible to express the extension using a wild card?  For example, to cleanup the multi-part rar files: ".r*"

In my case, the cleanup did for some reason exclude ".rar" and ".r*" files that had already been unpacked.  The nzb contained a .sfv, .nfo, and .rar and .r* files that extracted to a single .mkv file.  The result was the .mkv being renamed and moved as I had specified by way of "Categories" and "TV sorting" options.  The .sfv, .nfo, and .rar/.r* files moved there as well but were NOT renamed or deleted.

To that effect, would a script be able to accomplish what I am looking for.  I'm not sure of the syntax but something like:

del %1\%3.rar
del %1\%3.r*

Because, ideally, I'd like to keep the extracted file(s) (obviously) but also supporting files like .nfo, .sfv, .sub, .idx, etc.  Basically keep anything that doesn't include in it's name %3 (the "Clean version of the job name" as described in the wiki - http://wiki.sabnzbd.org/user-scripts), but delete the remaining rar files that had already been unpacked.

Thanks!
Last edited by jm9843 on December 11th, 2009, 6:33 pm, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Beta 3 sorting, renaming, cleanup almost there!

Post by shypike »

jm9843 wrote: In my case, the cleanup did for some reason exclude ".rar" and ".r*" files that had already been unpacked.  
The cleanup list currently doesn't support wild-cards.

Used par2 and rar files should be deleted.
Can you email the NZB file to bugs at sabnzbd.org ?
Please include also your TV sort expression, if you are using one for this download.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Beta 3 sorting, renaming, cleanup almost there!

Post by switch »

When the affected items are in your queue are they set to +Delete (D)?
jm9843
Newbie
Newbie
Posts: 4
Joined: December 11th, 2009, 4:03 pm

Re: Beta 3 sorting, renaming, cleanup almost there!

Post by jm9843 »

shypike wrote:Can you email the NZB file to bugs at sabnzbd.org ?
Please include also your TV sort expression, if you are using one for this download.
Email sent!
jm9843
Newbie
Newbie
Posts: 4
Joined: December 11th, 2009, 4:03 pm

Re: Beta 3 sorting, renaming, cleanup almost there!

Post by jm9843 »

switch wrote: When the affected items are in your queue are they set to +Delete (D)?
I queued something up to check this and actually, no, they are not.  ???  It defaulted to +Unpack (U).  I changed it to +Delete (D) while it was in the process of downloading and it deleted the rars properly.

Do you have any idea why it is defaulting to (U) when my "Default Post-Processing" under the "Switches configuration" section is set to "+Delete"?  Also, under the "User-defined categories" section I have "Processing" set to "Default" for all categories.

Thanks.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Beta 3 sorting, renaming, cleanup almost there!

Post by switch »

Can you detail how the nzbs are added to your queue?
Post Reply