-
Notifications
You must be signed in to change notification settings - Fork 64
Home
dbr edited this page Sep 12, 2010
·
24 revisions
tvdb_api currently contains two parts, tvdb_api.py and tvnamer.py
This is an easy to use Python interface to the TVDB API ( http://www.thetvdb.com ).
from tvdb_api import Tvdb t = Tvdb() print t['Scrubs'][4][22]['name' # This will print the name of Scrubs episode 22, in season 4 print t['My Name Is Earl'][2][1]['episodename'] # Prints name of episode 1 of season 2 print t['Scrubs'].search('my first', key='episodename')[0]['name'] # Prints the first episode whose name contains "my first"
For more information, see the tvdb_api page
TVNamer is a command-line tool to automatically names TV episode filenames, to more consistent and nicer-to-read names than “show.name.s2e02.abc.avi”. It was the reason tvdb_api.py was written
For more information, see the TVNamer page