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

[myhentaigallery] fix 'tags' extraction

This commit is contained in:
Mike Fährmann 2024-10-10 17:06:17 +02:00
parent 6807bf9c11
commit f9e76ba6eb
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -33,7 +33,7 @@ class MyhentaigalleryGalleryExtractor(GalleryExtractor):
title = extr('<div class="comic-description">\n', '</h1>').lstrip()
if title.startswith("<h1>"):
title = title[len("<h1>"):]
title = title[4:]
if not title:
raise exception.NotFoundError("gallery")
@ -41,10 +41,10 @@ class MyhentaigalleryGalleryExtractor(GalleryExtractor):
return {
"title" : text.unescape(title),
"gallery_id": text.parse_int(self.gallery_id),
"tags" : split(extr('<div>\nCategories:', '</div>')),
"artist" : split(extr('<div>\nArtists:' , '</div>')),
"group" : split(extr('<div>\nGroups:' , '</div>')),
"parodies" : split(extr('<div>\nParodies:' , '</div>')),
"tags" : split(extr(" Categories:", "</div>")),
"artist" : split(extr(" Artists:" , "</div>")),
"group" : split(extr(" Groups:" , "</div>")),
"parodies" : split(extr(" Parodies:" , "</div>")),
}
def images(self, page):