Take the 2008 Git User's Survey and help out! [ hide ]

public
Description: Simple to use TVDB (thetvdb.com) API in Python, and automatic TV episode namer
Homepage: http://dbr.lighthouseapp.com/projects/13342-tvdb_api/tickets
Clone URL: git://github.com/dbr/tvdb_api.git
Search Repo:
Now using exception for "showname not found" error
dbr (author)
Sun Jun 22 05:04:50 -0700 2008
commit  a54355c408f9b2190ad3f053bb224ab74fe1edd1
tree    7dd0af792c678f530506327799cd084fd034d7bc
parent  5c04d2c58c2eb9d9b42af5a74e85bac882ac5512
...
12
13
14
 
15
16
17
...
217
218
219
220
 
221
222
223
...
12
13
14
15
16
17
18
...
218
219
220
 
221
222
223
224
0
@@ -12,6 +12,7 @@ __version__ = "0.1"
0
 import os,sys,re
0
 from optparse import OptionParser
0
 
0
+from tvdb_api import tvdb_shownotfound, tvdb_epnamenotfound
0
 from tvdb_api import tvdb
0
 
0
 config={}
0
@@ -217,7 +218,7 @@ def main():
0
         # Ask for episode name from tvdb_api
0
         try:
0
             epname = t[ cfile['file_showname'] ][ cfile['seasno'] ][ cfile['epno'] ]['name']
0
- except tvdb_shownotfound:
0
+ except (tvdb_shownotfound,tvdb_epnamenotfound):
0
             # No such show
0
             epname = None
0
             showname = None

Comments

    No one has commented yet.