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:
Moved extension-dot stripping to processNames so the extension never has 
that dot anywhere in the script
dbr (author)
Thu Jul 24 06:19:50 -0700 2008
commit  4c9c9feefeb4ced375fcb71665d718262aaf55c1
tree    e9eef3a62b0e37fd35fd6eeb9e8f6c6fca6d4819
parent  6f2afb8517ef0b6024cb3878f38592c9c0781c45
...
76
77
78
 
 
79
80
81
...
113
114
115
116
117
118
119
...
76
77
78
79
80
81
82
83
...
115
116
117
 
118
119
120
0
@@ -76,6 +76,8 @@ def processNames(names, verbose=False):
0
     for f in names:
0
         filepath, filename = os.path.split( f )
0
         filename, ext = os.path.splitext( filename )
0
+ # Remove leading . from extension
0
+ ext = ext.replace(".", "", 1)
0
         for r in config['name_parse']:
0
             match = r.match(filename)
0
             if match:
0
@@ -113,7 +115,6 @@ def formatName(cfile):
0
     """
0
     Takes a file dict and renames files using the configured format
0
     """
0
- cfile['ext'] = cfile['ext'].replace(".", "", 1)
0
     if cfile['epname']:
0
         n = config['with_ep_name'] % (cfile)
0
     else:

Comments

    No one has commented yet.