mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 02:32:33 +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()
|
title = extr('<div class="comic-description">\n', '</h1>').lstrip()
|
||||||
if title.startswith("<h1>"):
|
if title.startswith("<h1>"):
|
||||||
title = title[len("<h1>"):]
|
title = title[4:]
|
||||||
|
|
||||||
if not title:
|
if not title:
|
||||||
raise exception.NotFoundError("gallery")
|
raise exception.NotFoundError("gallery")
|
||||||
@ -41,10 +41,10 @@ class MyhentaigalleryGalleryExtractor(GalleryExtractor):
|
|||||||
return {
|
return {
|
||||||
"title" : text.unescape(title),
|
"title" : text.unescape(title),
|
||||||
"gallery_id": text.parse_int(self.gallery_id),
|
"gallery_id": text.parse_int(self.gallery_id),
|
||||||
"tags" : split(extr('<div>\nCategories:', '</div>')),
|
"tags" : split(extr(" Categories:", "</div>")),
|
||||||
"artist" : split(extr('<div>\nArtists:' , '</div>')),
|
"artist" : split(extr(" Artists:" , "</div>")),
|
||||||
"group" : split(extr('<div>\nGroups:' , '</div>')),
|
"group" : split(extr(" Groups:" , "</div>")),
|
||||||
"parodies" : split(extr('<div>\nParodies:' , '</div>')),
|
"parodies" : split(extr(" Parodies:" , "</div>")),
|
||||||
}
|
}
|
||||||
|
|
||||||
def images(self, page):
|
def images(self, page):
|
||||||
|
Loading…
Reference in New Issue
Block a user