1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-26 04:32:51 +01:00

[foolfuuka] use '{extension}' in default filename format

This commit is contained in:
Mike Fährmann 2019-11-28 23:12:48 +01:00
parent e9aed62c91
commit 41a3169c67
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -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):