replace spaces with dots in folder names switch-code inside

Want something added? Ask for it here.
Post Reply
davedgd
Newbie
Newbie
Posts: 2
Joined: October 7th, 2012, 10:27 pm

replace spaces with dots in folder names switch-code inside

Post by davedgd »

This has been bothering me for a while now, but despite options to replace dots with spaces and spaces with underscores, some people may prefer to have spaces replaced with dots. I have modified the latest source code to include this feature, added the switch, descriptions, and relevant code. Any chance of merging in this feature? There is a thread that was using workarounds and asking for this a while ago:

http://forums.sabnzbd.org/viewtopic.php ... ace#p52905

Instead of using workarounds, I've implemented the option directly. Sorry if there isn't a better way to do this, but I don't know how else something could be committed.

http://www.sendspace.com/file/fsszl4
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: replace spaces with dots in folder names switch-code ins

Post by shypike »

It's not that it's very difficult to implement, but SABnzbd is already drowning in too many options.
Next time we clear up the options, this would be a sensible addition.
On a personal level, I still wonder what people think is wrong with spaces.
davedgd
Newbie
Newbie
Posts: 2
Joined: October 7th, 2012, 10:27 pm

Re: replace spaces with dots in folder names switch-code ins

Post by davedgd »

Thanks for the reply shypike. I agree about the many options comment. I was going to code it to allow for from/to replacement as open fields (e.g., convert spaces to dots, or dots to spaces), but this was a lazier approach.

I actually would switch all my folders over to spaces, but given that I already have several hundreds/thousands of folders, I'd rather just keep using periods. I may end up writing a python script to convert all my folders with spaces to periods instead, but laziness is making it easier to just manually rename folder locations when adding things to the sabnzbd queue.
Post Reply