[gofile][pixeldrain] enable 'recursive' by default
This commit is contained in:
@@ -3491,7 +3491,7 @@ extractor.gofile.recursive
|
|||||||
Type
|
Type
|
||||||
``bool``
|
``bool``
|
||||||
Default
|
Default
|
||||||
``false``
|
``true``
|
||||||
Description
|
Description
|
||||||
Recursively download files from subfolders.
|
Recursively download files from subfolders.
|
||||||
|
|
||||||
@@ -4862,7 +4862,7 @@ extractor.pixeldrain.recursive
|
|||||||
Type
|
Type
|
||||||
``bool``
|
``bool``
|
||||||
Default
|
Default
|
||||||
``false``
|
``true``
|
||||||
Description
|
Description
|
||||||
Recursively download files from subfolders.
|
Recursively download files from subfolders.
|
||||||
|
|
||||||
|
|||||||
@@ -406,7 +406,7 @@
|
|||||||
{
|
{
|
||||||
"api-token": null,
|
"api-token": null,
|
||||||
"website-token": null,
|
"website-token": null,
|
||||||
"recursive": false
|
"recursive": true
|
||||||
},
|
},
|
||||||
"hdoujin":
|
"hdoujin":
|
||||||
{
|
{
|
||||||
@@ -632,7 +632,7 @@
|
|||||||
"pixeldrain":
|
"pixeldrain":
|
||||||
{
|
{
|
||||||
"api-key" : null,
|
"api-key" : null,
|
||||||
"recursive": false,
|
"recursive": true,
|
||||||
"zip" : false
|
"zip" : false
|
||||||
},
|
},
|
||||||
"pixiv":
|
"pixiv":
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class GofileFolderExtractor(Extractor):
|
|||||||
self.content_id = match[1]
|
self.content_id = match[1]
|
||||||
|
|
||||||
def items(self):
|
def items(self):
|
||||||
recursive = self.config("recursive")
|
recursive = self.config("recursive", True)
|
||||||
password = self.config("password")
|
password = self.config("password")
|
||||||
|
|
||||||
token = self.config("api-token")
|
token = self.config("api-token")
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ class PixeldrainFolderExtractor(PixeldrainExtractor):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def items(self):
|
def items(self):
|
||||||
recursive = self.config("recursive")
|
recursive = self.config("recursive", True)
|
||||||
|
|
||||||
url = f"{self.root}/api/filesystem/{self.groups[0]}"
|
url = f"{self.root}/api/filesystem/{self.groups[0]}"
|
||||||
stat = self.request_json(url + "?stat")
|
stat = self.request_json(url + "?stat")
|
||||||
|
|||||||
Reference in New Issue
Block a user