mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-23 11:12:40 +01:00
[simplyhentai] fix 'gallery_id' extraction
This commit is contained in:
parent
daeef8a5e3
commit
f317a57c5e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user