mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-30 18:45:20 -04:00
...
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user