From 4e11ca737ec88dc6e2ea93382fd7975131fe14de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Tue, 12 Jul 2022 22:19:22 +0200 Subject: [PATCH] [hentaifoundry] fix metadata extraction --- gallery_dl/extractor/hentaifoundry.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gallery_dl/extractor/hentaifoundry.py b/gallery_dl/extractor/hentaifoundry.py index 691cefb8..07414510 100644 --- a/gallery_dl/extractor/hentaifoundry.py +++ b/gallery_dl/extractor/hentaifoundry.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright 2015-2020 Mike Fährmann +# Copyright 2015-2022 Mike Fährmann # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as @@ -84,12 +84,12 @@ class HentaifoundryExtractor(Extractor): .replace("\r\n", "\n"), "", "")), "ratings" : [text.unescape(r) for r in text.extract_iter(extr( "class='ratings_box'", ""), "title='", "'")], - "media" : text.unescape(extr("Media\t\t", "<")), "date" : text.parse_datetime(extr("datetime='", "'")), - "views" : text.parse_int(extr("Views\t\t", "<")), + "views" : text.parse_int(extr(">Views", "<")), + "score" : text.parse_int(extr(">Vote Score", "<")), + "media" : text.unescape(extr(">Media", "<").strip()), "tags" : text.split_html(extr( - "Keywords", ""))[::2], - "score" : text.parse_int(extr('Score\t\t', '<')), + ">Tags ", "")), } return text.nameext_from_url(data["src"], data) @@ -292,7 +292,7 @@ class HentaifoundryImageExtractor(HentaifoundryExtractor): "media" : "Other digital art", "ratings": ["Sexual content", "Contains female nudity"], "score" : int, - "tags" : ["kancolle", "kantai", "collection", "shimakaze"], + "tags" : ["collection", "kancolle", "kantai", "shimakaze"], "title" : "shimakaze", "user" : "Tenpura", "views" : int,