From a4f7f7da17de855faf79001f520ae327bcfe8b95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 6 Aug 2023 17:03:09 +0200 Subject: [PATCH] add '_dump()' convenience method to Extractor --- gallery_dl/extractor/common.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gallery_dl/extractor/common.py b/gallery_dl/extractor/common.py index d960a396..660f9551 100644 --- a/gallery_dl/extractor/common.py +++ b/gallery_dl/extractor/common.py @@ -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.