summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/common.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-09-07 20:40:45 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2025-09-07 20:40:45 -0400
commit243b2597edb922fe7e0b0d887e80bb7ebbe72ab7 (patch)
tree1a42ddec8ae1f21e3c4c88849818e1ea9140aaaa /gallery_dl/extractor/common.py
parent1df55d9de48105dace9cc16f1511dba3c9a6da6f (diff)
New upstream version 1.30.6.upstream/1.30.6
Diffstat (limited to 'gallery_dl/extractor/common.py')
-rw-r--r--gallery_dl/extractor/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gallery_dl/extractor/common.py b/gallery_dl/extractor/common.py
index 719fc62..568f435 100644
--- a/gallery_dl/extractor/common.py
+++ b/gallery_dl/extractor/common.py
@@ -462,7 +462,7 @@ class Extractor():
headers["Referer"] = self.root + "/"
custom_ua = self.config("user-agent")
- if custom_ua is None or custom_ua == "auto":
+ if not custom_ua or custom_ua == "auto":
pass
elif custom_ua == "browser":
headers["User-Agent"] = _browser_useragent(None)