diff --git a/docs/configuration.rst b/docs/configuration.rst index 6cdf2878..8dced28a 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -392,8 +392,9 @@ extractor.*.browser ------------------- Type ``string`` +Default + ``"firefox"`` for ``patreon``, ``null`` everywhere else Example - * ``"firefox"`` * ``"chrome:macos"`` Description Try to emulate a real browser (``firefox`` or ``chrome``) diff --git a/gallery_dl/extractor/common.py b/gallery_dl/extractor/common.py index e7a42522..efdc2a04 100644 --- a/gallery_dl/extractor/common.py +++ b/gallery_dl/extractor/common.py @@ -32,6 +32,7 @@ class Extractor(): filename_fmt = "{filename}.{extension}" archive_fmt = "" cookiedomain = "" + browser = None root = "" test = None request_interval = 0.0 @@ -65,7 +66,7 @@ class Extractor(): self.config = self._config_shared self.config_accumulate = self._config_shared_accumulate - browser = self.config("browser") + browser = self.config("browser", self.browser) if browser: self._emulate_browser(browser) else: diff --git a/gallery_dl/extractor/patreon.py b/gallery_dl/extractor/patreon.py index cb189587..510c76ab 100644 --- a/gallery_dl/extractor/patreon.py +++ b/gallery_dl/extractor/patreon.py @@ -23,6 +23,7 @@ class PatreonExtractor(Extractor): directory_fmt = ("{category}", "{creator[full_name]}") filename_fmt = "{id}_{title}_{num:>02}.{extension}" archive_fmt = "{id}_{num}" + browser = "firefox" _warning = True def items(self):