Re: Does SABnzbd have support for automatic file name renami
Posted: January 20th, 2013, 3:55 am
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. in PAR_Verify function to add the ", nzo.downpath+'/*'" part at the end of the brackets :
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
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. 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:
...
PS : I made this patch on 0.6.8 but i guess it should work on later release also.
Regards
Tom