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
Improved console GUI (made episode-name not found error clearer, 
season/episode numbers were flipped in "Processing showname (season: 1, 
episode 2)" info)
dbr (author)
Mon Jun 09 05:12:25 -0700 2008
commit  df6389fc85ad0c81ed467a899aa951d69d61da06
tree    cfb7173bef959a4f6eadd9b0b590f069b9e131c7
parent  d1377c02a75b4379852870c5f1169481adbb07f7
...
210
211
212
 
213
214
215
 
216
217
218
...
228
229
230
231
 
232
233
234
...
210
211
212
213
214
215
 
216
217
218
219
...
229
230
231
 
232
233
234
235
0
@@ -210,9 +210,10 @@ def main():
0
     
0
     print "# ..got tvdb mirrors"
0
     print "# Starting to process files"
0
+ print "#"*20
0
     
0
     for cfile in validFiles:
0
- print "Processing %(file_showname)s (season: %(epno)d, episode %(seasno)d)" % (cfile)
0
+ print "Processing %(file_showname)s (season: %(seasno)d, episode %(epno)d)" % (cfile)
0
         # Ask for episode name from tvdb_api
0
         try:
0
             epname = t[ cfile['file_showname'] ][ cfile['seasno'] ][ cfile['epno'] ]['name']
0
@@ -228,7 +229,7 @@ def main():
0
             cfile['epname'] = epname
0
         else:
0
             cfile['epname'] = None
0
- sys.stderr.write("! Episode name not found for %s\n" % ( cfile ) )
0
+ sys.stderr.write("! Warning: Episode name not found for %s (in %s)\n" % ( cfile['file_showname'], cfile['filepath'] ) )
0
         #end if epname
0
         
0
         if showname:

Comments

    No one has commented yet.