Does SABnzbd have support for automatic file name renaming?

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.
Tomeor
Newbie
Newbie
Posts: 2
Joined: January 20th, 2013, 3:44 am

Re: Does SABnzbd have support for automatic file name renami

Post by Tomeor »

Hello,

This is a quick fix to solve this problem of file renaming in sabnzbd. The objective is to make sabnzbd call par2 cmd with a "*" at the end of the command line.

So you have to edit the file newsunpack.py (under ubuntu it is in /usr/share/sabnzbdplus/sabnzbd ) and modify lines 871 & 873 (on 0.6.8) in PAR_Verify function to add the ", nzo.downpath+'/*'" part at the end of the brackets :

Code: Select all

...
if (is_new_partype(nzo, setname) and not classic) or not PAR2C_COMMAND:
        if cfg.par_option():
            command = [str(PAR2_COMMAND), cmd, str(cfg.par_option().strip()), parfile, nzo.downpath+'/*'] # <-- HERE
        else:
            command = [str(PAR2_COMMAND), cmd, parfile, nzo.downpath+'/*'] # <-- AND HERE
        classic = not PAR2C_COMMAND
    else:
...
I tried it on a few movies and it works fine.

PS : I made this patch on 0.6.8 but i guess it should work on later release also.
Regards
Tom
Post Reply