From 7583edf3fed058dfbbd20a84bbd0b426d42d0629 Mon Sep 17 00:00:00 2001 From: panni Date: Sat, 19 Oct 2019 15:36:46 +0200 Subject: [PATCH] providers: addic7ed: move re to correct place; fix show match; #686 --- Contents/Libraries/Shared/subliminal/providers/addic7ed.py | 2 +- .../Libraries/Shared/subliminal_patch/providers/addic7ed.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Contents/Libraries/Shared/subliminal/providers/addic7ed.py b/Contents/Libraries/Shared/subliminal/providers/addic7ed.py index 9583d2e84..2926081e0 100644 --- a/Contents/Libraries/Shared/subliminal/providers/addic7ed.py +++ b/Contents/Libraries/Shared/subliminal/providers/addic7ed.py @@ -20,7 +20,7 @@ language_converters.register('addic7ed = subliminal.converters.addic7ed:Addic7edConverter') # Series cell matching regex -show_cells_re = re.compile(b'.*?', re.DOTALL) +show_cells_re = re.compile(b'.*?', re.DOTALL) #: Series header parsing regex series_year_re = re.compile(r'^(?P[ \w\'.:(),*&!?-]+?)(?: \((?P\d{4})\))?$') diff --git a/Contents/Libraries/Shared/subliminal_patch/providers/addic7ed.py b/Contents/Libraries/Shared/subliminal_patch/providers/addic7ed.py index c5d3ccde5..1e04821b0 100644 --- a/Contents/Libraries/Shared/subliminal_patch/providers/addic7ed.py +++ b/Contents/Libraries/Shared/subliminal_patch/providers/addic7ed.py @@ -10,7 +10,7 @@ from subliminal.cache import region from subliminal.exceptions import DownloadLimitExceeded, AuthenticationError from subliminal.providers.addic7ed import Addic7edProvider as _Addic7edProvider, \ - Addic7edSubtitle as _Addic7edSubtitle, ParserBeautifulSoup, show_cells_re + Addic7edSubtitle as _Addic7edSubtitle, ParserBeautifulSoup from subliminal.subtitle import fix_line_ending from subliminal_patch.utils import sanitize from subliminal_patch.exceptions import TooManyRequests @@ -19,6 +19,8 @@ logger = logging.getLogger(__name__) +show_cells_re = re.compile(b'.*?', re.DOTALL) + #: Series header parsing regex series_year_re = re.compile(r'^(?P[ \w\'.:(),*&!?-]+?)(?: \((?P\d{4})\))?$')