From 6b840fc4cf2bb1ca92363f65c2596454c7c81f80 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Wed, 4 Jan 2017 11:29:46 +0100 Subject: [PATCH] =?utf8?q?[rename=5Fseries]=20On=20autorise=20()=20dans=20?= =?utf8?q?le=20nom=20de=20la=20s=C3=A9rie?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit et le [ avant SsxEee devient facultatif --- rename_series.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rename_series.py b/rename_series.py index 4bc4c81..efeeb5e 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