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:
parent
6807bf9c11
commit
f9e76ba6eb
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user