diff options
Diffstat (limited to 'gallery_dl/extractor/thehentaiworld.py')
| -rw-r--r-- | gallery_dl/extractor/thehentaiworld.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gallery_dl/extractor/thehentaiworld.py b/gallery_dl/extractor/thehentaiworld.py index 9a30654..773f300 100644 --- a/gallery_dl/extractor/thehentaiworld.py +++ b/gallery_dl/extractor/thehentaiworld.py @@ -36,12 +36,12 @@ class ThehentaiworldExtractor(Extractor): if "file_urls" in post: urls = post["file_urls"] post["count"] = len(urls) - yield Message.Directory, post + yield Message.Directory, "", post for post["num"], url in enumerate(urls, 1): text.nameext_from_url(url, post) yield Message.Url, url, post else: - yield Message.Directory, post + yield Message.Directory, "", post url = post["file_url"] text.nameext_from_url(url, post) yield Message.Url, url, post @@ -56,8 +56,7 @@ class ThehentaiworldExtractor(Extractor): "id" : text.parse_int(extr(" postid-", " ")), "slug" : extr(" post-", '"'), "tags" : extr('id="tagsHead">', "</ul>"), - "date" : text.parse_datetime(extr( - "<li>Posted: ", "<"), "%Y-%m-%d"), + "date" : self.parse_datetime_iso(extr("<li>Posted: ", "<")), } if (c := url[27]) == "v": |
