Page 1 of 1

Replace Space with User Defined Character

Posted: February 14th, 2011, 8:10 pm
by dragoon
Howdy

Just wondering if someone could tell me where the code to replace spaces with underscores is, wouldnt mind changing it to a user selectable character, been trawling through the source and cant find it, im not python expert but should hopefully be able to produce something.

Thanks, Dragoon

Re: Replace Space with User Defined Character

Posted: February 15th, 2011, 2:54 am
by shypike
Source file sanbnzbd/nzbstuff.py
Starting from line 543.
You'll figure it out, it's not hard.

BTW: "replace-dots-with-spaces" is already implemented,
but without support in the UI.
See: http://wiki.sabnzbd.org/configure-special