dbr / tvnamer

Automatic TV episode file renamer, uses data from thetvdb.com via tvdb_api
https://pypi.python.org/pypi/tvnamer/
The Unlicense
912 stars 115 forks source link

overwrite_destination_on_rename #94

Closed raptor235 closed 4 years ago

raptor235 commented 10 years ago

Hey there great work on the script... I'm having issues trying to use overwrite_destination_on_rename to overwrite files that are already there but not having much luck.. the parameter isn't recognized from the cli... and I can't seem to get the config file to work either... any way you could implement it as a parameter?

dbr commented 10 years ago

Strange - the code for this looks like it should work, and there is a test case for this

Can you give more information? The terminal output is usually the most useful

raptor235 commented 10 years ago

Hi @dbr I tried the command line with --overwrite_destination_on_rename && --overwrite_destination_on_rename=true but both say that the parameter is invalid. Can that be specified through command line?

my regular cli command looks like this

tvnamer -r --batch --selectfirst --move -a --movedestination="/Volumes/External/Downloads/TV/%(seriesname)s/Season %(seasonnumber)d/" /Users/bartdabek/Downloads/Unsorted

lahwaacz commented 10 years ago

Not all options from the configuration file are parsed by the cliarg_parser. The overwrite_destination_on_rename option is available only through the config file.

raptor235 commented 10 years ago

ok, what's the proper way to call in a config file? I had issues with this before but will give this a try again tonight.

lahwaacz commented 10 years ago

Use the --config cli option. Btw, tvnamer --help shows which options are available via the command line.