diff options
| author | 2023-11-27 17:57:07 -0500 | |
|---|---|---|
| committer | 2023-11-27 17:57:07 -0500 | |
| commit | 34eea9832b1b50aa9214481363cb3ca5c81bb2d8 (patch) | |
| tree | dbf7dc5cc36fbad64ac83e38d0ec0fec90f9f109 /gallery_dl/extractor/common.py | |
| parent | ecd8aa4d85bd87ed65abe0f22ba058bda95d699c (diff) | |
| parent | 2a817af4fe41289fa705bdc5ee61372333f43996 (diff) | |
Update upstream source from tag 'upstream/1.26.3'
Update to upstream version '1.26.3'
with Debian dir f685c0316a7fc7f226907bb4cb034eab193d2945
Diffstat (limited to 'gallery_dl/extractor/common.py')
| -rw-r--r-- | gallery_dl/extractor/common.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gallery_dl/extractor/common.py b/gallery_dl/extractor/common.py index 3bec424..f378427 100644 --- a/gallery_dl/extractor/common.py +++ b/gallery_dl/extractor/common.py @@ -78,6 +78,12 @@ class Extractor(): def config(self, key, default=None): return config.interpolate(self._cfgpath, key, default) + def config2(self, key, key2, default=None, sentinel=util.SENTINEL): + value = self.config(key, sentinel) + if value is not sentinel: + return value + return self.config(key2, default) + def config_deprecated(self, key, deprecated, default=None, sentinel=util.SENTINEL, history=set()): value = self.config(deprecated, sentinel) |
