Allow for old title

This commit is contained in:
Christian Wolf 2024-03-14 19:06:43 +01:00
parent 61a607e516
commit 533f3ef237

View File

@ -42,6 +42,9 @@ class HtmlParser:
title = self.getEventTitle() title = self.getEventTitle()
match = re.compile('.*?OT, Solos (.*?)(?: ".*")?').fullmatch(title) 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: if match is None:
self.l.info( self.l.info(
'Cannot parse html title "%s". Is it a solo competition? Possible bug.', 'Cannot parse html title "%s". Is it a solo competition? Possible bug.',