From 6eae26fa0c1247c9fbf1f93f3e962d914b31e510 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Thu, 11 Jun 2015 04:19:50 +0200 Subject: [PATCH] =?utf8?q?[rename=5Fseries]=20l=C3=A9g=C3=A8re=20modif=20d?= =?utf8?q?e=20la=20regexp=20comme=20=C3=A7a=20l'op=C3=A9ration=20est=20inv?= =?utf8?q?olutive?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- rename_series.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rename_series.py b/rename_series.py index dd4e0fe..a6b89f8 100755 --- a/rename_series.py +++ b/rename_series.py @@ -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([A-Za-z0-9_-]+(\.| ))+)(S|\[)(?P\d+)(E|x)(?P\d+).*\.(?P[a-z0-9]*)$" +SEASONEPISODE_REGEXP = ur"^(?P([A-Za-z0-9_-]+(\.| ))+)(S|- \[)(?P\d+)(E|x)(?P\d+).*\.(?P[a-z0-9]*)$" sep_re = re.compile(SEASONEPISODE_REGEXP) def get_titles(filename, debug=False, oneintwo=False): -- 2.39.2