1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

[kemonoparty] 'postfile' -> 'file' (#1991)

to stay consistent with the existing file types for kemono
This commit is contained in:
Mike Fährmann 2021-11-19 01:50:48 +01:00
parent 522782c09d
commit 9bc83af3a6
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 5 additions and 5 deletions

View File

@ -1343,11 +1343,11 @@ extractor.kemonoparty.files
Type
``list`` of ``strings``
Default
``["postfile", "attachments", "inline"]``
``["file", "attachments", "inline"]``
Description
Determines the type and order of files to be downloaded.
Available types are ``postfile``, ``attachments``, and ``inline``.
Available types are ``file``, ``attachments``, and ``inline``.
extractor.kemonoparty.max-posts

View File

@ -106,7 +106,7 @@ class KemonopartyExtractor(Extractor):
return {c.name: c.value for c in response.history[0].cookies}
def _postfile(self, post):
def _file(self, post):
file = post["file"]
if not file:
return ()
@ -124,9 +124,9 @@ class KemonopartyExtractor(Extractor):
def _build_file_generators(self, filetypes):
if filetypes is None:
return (self._postfile, self._attachments, self._inline)
return (self._file, self._attachments, self._inline)
genmap = {
"postfile" : self._postfile,
"file" : self._file,
"attachments": self._attachments,
"inline" : self._inline,
}