Python: tvrenamr

From wikinotes

tvrenamr is a python script to use the tvdb to name tvshow movies files.

NOTE:

The version of tvrenamr that is packaged with pip2 (feb10 2016) is out of date from github, and requires a correction to run:

#### /usr/lib/python2.7/site-packages/tvrenamr/libraries.py

## line 22/23 (lines with lstrip())
self.season  = str(season).lstrip('0')
self.episode = str(episode).lstrip('0')

####

Full debugging can be enabled in log.py. You'll want to modify the log output, it does not include line numbers by default.


Install

sudo pip2 install tvrenamr

Usage

Official Docs
http://tvrenamr.readthedocs.org/en/latest/usage.html Official Docs
Important Flags
-d
dry-run (test renaming without affecting files)
-c
cannonical-name (tvdb name)
-l debug
log-level (not as useful without modifying log.py)

Normal Usage

tvr 
	--season 2
	-c Elementary                ## show-name (according to tvdb website)
	-o "%n - s%se%e - %t%x"
   /path/to/dir/with/files