mirror of
https://github.com/mikf/gallery-dl.git
synced 2025-02-01 03:51:42 +01:00
add '_dump()' convenience method to Extractor
This commit is contained in:
parent
df5c7ee03e
commit
a4f7f7da17
@ -523,6 +523,10 @@ class Extractor():
|
||||
test = (test, None)
|
||||
yield test
|
||||
|
||||
@classmethod
|
||||
def _dump(cls, obj):
|
||||
util.dump_json(obj, ensure_ascii=False, indent=2)
|
||||
|
||||
def _dump_response(self, response, history=True):
|
||||
"""Write the response content to a .dump file in the current directory.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user