Replace Space with User Defined Character

Want something added? Ask for it here.
Post Reply
dragoon
Newbie
Newbie
Posts: 1
Joined: February 14th, 2011, 7:58 pm

Replace Space with User Defined Character

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Replace Space with User Defined Character

Post 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
Post Reply