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:
parent
522782c09d
commit
9bc83af3a6
@ -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
|
||||
|
@ -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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user