From f9e76ba6eb4d724be778d13040c8de781e7a9da6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 10 Oct 2024 17:06:17 +0200 Subject: [PATCH] [myhentaigallery] fix 'tags' extraction --- gallery_dl/extractor/myhentaigallery.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gallery_dl/extractor/myhentaigallery.py b/gallery_dl/extractor/myhentaigallery.py index 5e8179ec..f09507ce 100644 --- a/gallery_dl/extractor/myhentaigallery.py +++ b/gallery_dl/extractor/myhentaigallery.py @@ -33,7 +33,7 @@ class MyhentaigalleryGalleryExtractor(GalleryExtractor): title = extr('
\n', '').lstrip() if title.startswith("

"): - title = title[len("

"):] + 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('
\nCategories:', '
')), - "artist" : split(extr('
\nArtists:' , '
')), - "group" : split(extr('
\nGroups:' , '
')), - "parodies" : split(extr('
\nParodies:' , '
')), + "tags" : split(extr(" Categories:", "

")), + "artist" : split(extr(" Artists:" , "")), + "group" : split(extr(" Groups:" , "")), + "parodies" : split(extr(" Parodies:" , "")), } def images(self, page):