[common] implement 'parent-session'
This commit is contained in:
@@ -251,6 +251,25 @@ Description
|
||||
}
|
||||
|
||||
|
||||
extractor.*.parent-session
|
||||
--------------------------
|
||||
Type
|
||||
``bool``
|
||||
Default
|
||||
``true``
|
||||
``[chevereto]`` |
|
||||
``[imagehost]``
|
||||
``false``
|
||||
otherwise
|
||||
Description
|
||||
Share a parent's
|
||||
`session <https://requests.readthedocs.io/en/latest/user/advanced/#session-objects>`__
|
||||
with its child extractors, including
|
||||
`cookies <extractor.*.cookies_>`__,
|
||||
`headers <extractor.*.headers_>`__,
|
||||
and other networking settings.
|
||||
|
||||
|
||||
extractor.*.parent-skip
|
||||
-----------------------
|
||||
Type
|
||||
|
||||
@@ -60,6 +60,7 @@
|
||||
|
||||
"parent-directory": false,
|
||||
"parent-metadata" : false,
|
||||
"parent-session" : false,
|
||||
"parent-skip" : false,
|
||||
|
||||
"path-restrict": "auto",
|
||||
@@ -1023,6 +1024,7 @@
|
||||
"chevereto":
|
||||
{
|
||||
"parent-metadata": true,
|
||||
"parent-session" : true,
|
||||
"password" : ""
|
||||
},
|
||||
|
||||
@@ -1097,7 +1099,8 @@
|
||||
|
||||
"imagehost":
|
||||
{
|
||||
"parent-metadata": true
|
||||
"parent-metadata": true,
|
||||
"parent-session" : true
|
||||
},
|
||||
|
||||
"mastodon":
|
||||
|
||||
Reference in New Issue
Block a user