Customize illegal and legal characters

Want something added? Ask for it here.
Post Reply
keysen
Newbie
Newbie
Posts: 2
Joined: March 4th, 2012, 5:18 pm

Customize illegal and legal characters

Post by keysen »

Dear developer of sabnzbd,

I would like to get an entry to customize LEGAL and ILLEGAL CHARACTER as we can find in the misc.py (line 176).

I think it could be a good idea to allow user to custom because it doesn't depend directly of the partition type which execute sabnzbd, in my case I run sabnzbd in a virtualbox on Linux and I've bind a shared windows directory, It was necessary to manually edit these lines to use correctly this awesome soft.

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

Re: Customize illegal and legal characters

Post by shypike »

Customizing might be tempting, but the biggest issue is in the downloaded files.
par2 will try to change "incorrectly" named files to their original names.
keysen
Newbie
Newbie
Posts: 2
Joined: March 4th, 2012, 5:18 pm

Re: Customize illegal and legal characters

Post by keysen »

The thing to do is rename the original file name with the regex of authorized char and quickpar will be adapted to this one to generate the file repared.

What do you think of this ?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Customize illegal and legal characters

Post by shypike »

The mapping that SABnzbd does is the absolute minimum to be able to store files on the local file system.

The thing is par2, (and QuickPar) insist on recreating the original file names.
Also unrar will likely miss rar files and it will not obey any remapping that SABnzbd wants.
unrar has it's own way of remapping to the native system.
It would require renaming files after post-processing is complete,
which is something we're not going to implement.
But feel free to put in a user script.
Post Reply