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:
parent
e9aed62c91
commit
41a3169c67
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user