summaryrefslogtreecommitdiffstats
path: root/gallery_dl/config.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2024-12-02 00:31:59 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2024-12-02 00:31:59 -0500
commit1981ccaaea6eab2cf32536ec5afe132a870914d8 (patch)
tree013f1e17d922d3a6abf7f57aa6a175c2ce5d93bc /gallery_dl/config.py
parentfc004701f923bb954a22c7fec2ae8d607e78cb2b (diff)
New upstream version 1.28.0.upstream/1.28.0
Diffstat (limited to 'gallery_dl/config.py')
-rw-r--r--gallery_dl/config.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/gallery_dl/config.py b/gallery_dl/config.py
index 855fb4f..f932e3a 100644
--- a/gallery_dl/config.py
+++ b/gallery_dl/config.py
@@ -261,13 +261,19 @@ def accumulate(path, key, conf=_config):
if key in conf:
value = conf[key]
if value:
- result.extend(value)
+ if isinstance(value, list):
+ result.extend(value)
+ else:
+ result.append(value)
for p in path:
conf = conf[p]
if key in conf:
value = conf[key]
if value:
- result[:0] = value
+ if isinstance(value, list):
+ result[:0] = value
+ else:
+ result.insert(0, value)
except Exception:
pass
return result