1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 04:02:32 +01:00

[ao3] fix 'title' of restricted works (#6013)

This commit is contained in:
Mike Fährmann 2024-09-21 13:21:45 +02:00
parent 91eb04b0d0
commit 5c062f95c1
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -176,8 +176,8 @@ class Ao3WorkExtractor(Ao3Extractor):
extr('<dd class="bookmarks">', "</dd>")).replace(",", "")),
"views" : text.parse_int(
extr('<dd class="hits">', "<").replace(",", "")),
"title" : text.unescape(
extr(' class="title heading">', "<").strip()),
"title" : text.unescape(text.remove_html(
extr(' class="title heading">', "</h2>")).strip()),
"author" : text.unescape(text.remove_html(
extr(' class="byline heading">', "</h3>"))),
"summary" : text.split_html(