ghickman / tvrenamr

Utility to rename tv shows into a cleaner format
http://tvrenamr.info
MIT License
33 stars 7 forks source link

Option to replace spaces in names with dots (.) #51

Closed mwinters-stuff closed 10 years ago

mwinters-stuff commented 10 years ago

I name files with periods in the filename (as I use unix, its not a naming issue), It would be perfect if this tool had the option to replace spaces with dots..

:)

ghickman commented 10 years ago

This is mostly implemented already with the format option:

tvr -o "%n.%s%e.%t%x"

You can also set this in the config as a default:

default:
    format: "%n.%s%e.%t%x"

Or for a specific show:

firefly:
    format: "%n.%s%e.%t%x"

There is a drawback to this though - any file with an episode/show name that has spaces in it with still be output like that. This is kind of outside the purview of tvr since that data is coming from the remote APIs and I try not to mess with what they return if I can (there lies a rather large rabbit hole!).

However you should be able to get around this with this SO answer.

Hope that helps!