mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-23 17:23:40 +01:00
Fix for AO3 story list URLs that already have a '?' in them.
This commit is contained in:
parent
4819ca95b1
commit
79971745a2
1 changed files with 4 additions and 1 deletions
|
|
@ -43,7 +43,10 @@ def get_urls_from_page(url,configuration=None,normalize=False):
|
|||
if 'archiveofourown.org' in url:
|
||||
if adapter.getConfig("username"):
|
||||
if adapter.getConfig("is_adult"):
|
||||
addurl = "?view_adult=true"
|
||||
if '?' in url:
|
||||
addurl = "&view_adult=true"
|
||||
else:
|
||||
addurl = "?view_adult=true"
|
||||
else:
|
||||
addurl=""
|
||||
# just to get an authenticity_token.
|
||||
|
|
|
|||
Loading…
Reference in a new issue