]> gitweb.pimeys.fr Git - scripts-20-100.git/commitdiff
[rename_series] légère modif de la regexp comme ça l'opération est involutive
authorVincent Le Gallic <legallic@crans.org>
Thu, 11 Jun 2015 02:19:50 +0000 (04:19 +0200)
committerVincent Le Gallic <legallic@crans.org>
Sat, 25 Jul 2015 16:06:19 +0000 (18:06 +0200)
rename_series.py

index dd4e0fe773056bf80709a63700df545007cca989..a6b89f8aaa0da4bb28d7a56f8e9ddbcd3a256b68 100755 (executable)
@@ -12,7 +12,7 @@ import pprint
 
 FORMAT = "%%(series_name)s - [%%(season)0%(logmaxseason)sdx%%(episode)0%(logmaxepisode)sd] - %%(title)s.%%(extension)s"
 
-SEASONEPISODE_REGEXP = ur"^(?P<series_name>([A-Za-z0-9_-]+(\.| ))+)(S|\[)(?P<season>\d+)(E|x)(?P<episode>\d+).*\.(?P<extension>[a-z0-9]*)$"
+SEASONEPISODE_REGEXP = ur"^(?P<series_name>([A-Za-z0-9_-]+(\.| ))+)(S|\[)(?P<season>\d+)(E|x)(?P<episode>\d+).*\.(?P<extension>[a-z0-9]*)$"
 sep_re = re.compile(SEASONEPISODE_REGEXP)
 
 def get_titles(filename, debug=False, oneintwo=False):