1
0
Fork 0
mirror of https://github.com/kemayo/leech synced 2025-12-15 04:44:06 +01:00

AO3: change title detection for logged-in only

This commit is contained in:
David Lynch 2018-10-11 15:42:36 -05:00
parent 482c1ab26e
commit cdcd110c50

View file

@ -50,8 +50,8 @@ class ArchiveOfOurOwn(Site):
metadata = soup.select('#main h2.heading a')
story = Section(
title=metadata[0].string,
author=metadata[1].string,
title=metadata[0].text.strip(),
author=metadata[1].text.strip(),
url='http://archiveofourown.org/works/{}'.format(workid)
)
@ -102,7 +102,7 @@ class ArchiveOfOurOwnSeries(ArchiveOfOurOwn):
soup = self._soup('http://archiveofourown.org/series/{}?view_adult=true'.format(seriesid))
story = Section(
title=soup.select('#main h2.heading')[0].string,
title=soup.select('#main h2.heading')[0].text.strip(),
author=soup.select('#main dl.series.meta a[rel="author"]')[0].string,
url='http://archiveofourown.org/series/{}'.format(seriesid)
)