Comment on Automatically rename your torrent'd TV episodes

loz8@protazoa.com
Wed, 25 Feb 2009 11:27:07 +0000

I use the command line in Linux allot and as such spaces in my file names are a bit of a pain, as such I added this to your script to allow it to strip spaces from the file names and replace them with underscores.

Thought you might be interested in including it.

-c and --clean where used mostly because the other letters were already used.

224,228d223
<     # Replace spaces with uderscores
<     if opts.cleanspace:
<         newname = newname.replace(" ","_")
<     #end if cleanspace;
<
312,314d306
<     parser.add_option(  "-c", "--clean", action="store_true", default=False, dest="cleanspace",
<                         help="Clean spaces. replace with underscores")
<