1
0
Fork 0
mirror of https://github.com/kemayo/leech synced 2026-03-20 11:21:21 +01:00

Switch out use of :=, forgot I wasn't requiring 3.8 yet

This commit is contained in:
David Lynch 2022-03-06 10:46:13 -06:00
parent 172877410b
commit 08abe54e79

View file

@ -86,8 +86,9 @@ class XenForo(Site):
reader_url = False
if reader_url:
if m := re.search(r'\d+/(\d+)/reader', reader_url):
cat = int(m.group(1))
match = re.search(r'\d+/(\d+)/reader', reader_url)
if match:
cat = int(match.group(1))
if cat != 1 and cat in threadmark_categories:
story.title = f'{story.title} ({threadmark_categories[cat]})'
idx = 0