1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 03:02:50 +01:00

[simplyhentai] fix 'gallery_id' extraction

This commit is contained in:
Mike Fährmann 2020-07-27 16:14:06 +02:00
parent daeef8a5e3
commit f317a57c5e
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -45,11 +45,12 @@ class SimplyhentaiGalleryExtractor(GalleryExtractor):
self.gallery_url = extr('<link rel="canonical" href="', '"')
title = extr('<meta property="og:title" content="', '"')
image = extr('<meta property="og:image" content="', '"')
if not title:
raise exception.NotFoundError("gallery")
data = {
"title" : text.unescape(title),
"gallery_id": text.parse_int(extr('/Album/', '/')),
"gallery_id": text.parse_int(image.split("/")[-2]),
"parody" : split(extr('box-title">Series</div>', '</div>')),
"language" : text.remove_html(extr(
'box-title">Language</div>', '</div>')) or None,