mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-30 23:00:21 -04:00
...
This commit is contained in:
parent
20afcedbd8
commit
2431f1f47c
@ -122,7 +122,7 @@ def parse_index(raw=None): # {{{
|
||||
for category, q in category_offsets:
|
||||
if offset >= q:
|
||||
return category
|
||||
raise ValueError(f'Could not find category for offset: {offset}')
|
||||
raise ValueError('Could not find category for offset: ' + str(offset))
|
||||
|
||||
for match in re.finditer(r'''(?is)<li.+?<a\s+href=['"](https://www.mobileread.com/forums/showthread.php\?[pt]=\d+).+?>(.+?)<(.+?)</li>''', raw):
|
||||
name, url, rest = u(match.group(2)), u(match.group(1)), match.group(3)
|
||||
|
Loading…
x
Reference in New Issue
Block a user