mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-03 20:31:32 +02:00
Fix for paginated AO3 series, closes #1091
This commit is contained in:
parent
89a15e1b16
commit
b7c318f520
1 changed files with 3 additions and 2 deletions
|
|
@ -633,8 +633,9 @@ class BaseOTWAdapter(BaseSiteAdapter):
|
|||
if pageparam in url:
|
||||
pageurls.append(url)
|
||||
# logger.debug(pageurls)
|
||||
## need to find largest page number, including url
|
||||
maxpagenum = max([ int(x[x.index(pageparam)+len(pageparam):]) for x in pageurls ])
|
||||
## need to find largest page number, including url,
|
||||
## but excluding any further params
|
||||
maxpagenum = max([ int(re.sub(r'^.*'+re.escape(pageparam)+r'(\d+).*$','\\1',x)) for x in pageurls ])
|
||||
# logger.debug(maxpagenum)
|
||||
for j in range(1,maxpagenum+1):
|
||||
pageurl = 'https://' + self.getSiteDomain() + '/series/' + seriesid + pageparam + unicode(j)
|
||||
|
|
|
|||
Loading…
Reference in a new issue