From 533f3ef2377d3c39e48f1238ed994f273b72bc57 Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Thu, 14 Mar 2024 19:06:43 +0100 Subject: [PATCH] Allow for old title --- src/solo_turnier/html_parser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/solo_turnier/html_parser.py b/src/solo_turnier/html_parser.py index aca6ee8..ed6e1e2 100644 --- a/src/solo_turnier/html_parser.py +++ b/src/solo_turnier/html_parser.py @@ -42,6 +42,9 @@ class HtmlParser: title = self.getEventTitle() match = re.compile('.*?OT, Solos (.*?)(?: ".*")?').fullmatch(title) + if match is None: + self.l.debug('Parsing HTML page title "%s" as OT failed. Falling back to legacy ETW.', title) + match = re.compile('.*?ETW, Solos (.*?)(?: ".*")?').fullmatch(title) if match is None: self.l.info( 'Cannot parse html title "%s". Is it a solo competition? Possible bug.',