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:
parent
172877410b
commit
08abe54e79
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue