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
Allow "show name s01 e02.avi" filenames [#13 state:resolved]
dbr (author)
Tue Aug 12 17:54:59 -0700 2008
commit  8c6f4e3512f4f912644318583690da3bb73a619f
tree    8b1fd6ca055f7aa2903a92bca769c53aa4fcd08b
parent  74e114002fb977c0500a8c49199cc0a599474e1d
...
39
40
41
42
 
43
44
45
...
39
40
41
 
42
43
44
45
0
@@ -39,7 +39,7 @@ config['name_parse'] = [
0
     # foo.1x09*
0
     re.compile('''^([%s]+?)[ \._\-]\[?([0-9]+)x([0-9]+)[^\\/]*$''' % (config['valid_filename_chars_regex'])),
0
     # foo.s01.e01, foo.s01_e01
0
-    re.compile('''^([%s]+?)[ \._\-][Ss]([0-9]+)[\.-]?[Ee]([0-9]+)[^\\/]*$''' % (config['valid_filename_chars_regex'])),
0
+    re.compile('''^([%s]+?)[ \._\-][Ss]([0-9]+)[\.\- ]?[Ee]([0-9]+)[^\\/]*$''' % (config['valid_filename_chars_regex'])),
0
     # foo.103*
0
     re.compile('''^([%s]+)[ \._\-]([0-9]{1})([0-9]{2})[\._ -][^\\/]*$''' % (config['valid_filename_chars_regex'])),
0
     # foo.0103*

Comments