add type check before applying 'browser' option (fixes #1358)

pull/1374/head
Mike Fährmann 4 years ago
parent 5cf593a00a
commit 94faf8c85a
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -1,5 +1,7 @@
# Changelog
## Unreleased
## 1.17.0 - 2021-03-05
### Additions
- [cyberdrop] add support for `https://cyberdrop.me/` ([#1328](https://github.com/mikf/gallery-dl/issues/1328))

@ -216,7 +216,7 @@ class Extractor():
headers.clear()
browser = self.config("browser") or self.browser
if browser:
if browser and isinstance(browser, str):
browser, _, platform = browser.lower().partition(":")
if not platform or platform == "auto":

@ -6,4 +6,4 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
__version__ = "1.17.0"
__version__ = "1.17.1-dev"

Loading…
Cancel
Save