From 41a3169c67c5cf539e43b6c8b0eeaa134ed338f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 28 Nov 2019 23:12:48 +0100 Subject: [PATCH] [foolfuuka] use '{extension}' in default filename format --- gallery_dl/extractor/foolfuuka.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gallery_dl/extractor/foolfuuka.py b/gallery_dl/extractor/foolfuuka.py index 645b53a6..428f3c3d 100644 --- a/gallery_dl/extractor/foolfuuka.py +++ b/gallery_dl/extractor/foolfuuka.py @@ -20,7 +20,6 @@ class FoolfuukaThreadExtractor(SharedConfigMixin, Extractor): subcategory = "thread" directory_fmt = ("{category}", "{board[shortname]}", "{thread_num}{title:? - //}") - filename_fmt = "{media[media]}" archive_fmt = "{board[shortname]}_{num}_{timestamp}" pattern_fmt = r"/([^/]+)/thread/(\d+)" external = "default" @@ -50,7 +49,8 @@ class FoolfuukaThreadExtractor(SharedConfigMixin, Extractor): if url.startswith("/"): url = self.root + url - post["extension"] = url.rpartition(".")[2] + post["filename"], _, post["extension"] = \ + media["media"].rpartition(".") yield Message.Url, url, post def posts(self):