diff options
| author | 2023-01-30 04:40:57 -0500 | |
|---|---|---|
| committer | 2023-01-30 04:40:57 -0500 | |
| commit | 919f8ba16a7b82ba1099bd25b2c61c7881a05aa2 (patch) | |
| tree | 50eb34c3286538164a2f2b7048d110dc89b2a971 /gallery_dl/extractor/booru.py | |
| parent | f1051085013c0d702ef974b9b27ea43b3fc73259 (diff) | |
New upstream version 1.24.5.upstream/1.24.5
Diffstat (limited to 'gallery_dl/extractor/booru.py')
| -rw-r--r-- | gallery_dl/extractor/booru.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gallery_dl/extractor/booru.py b/gallery_dl/extractor/booru.py index 0d7d13d..cbd0e07 100644 --- a/gallery_dl/extractor/booru.py +++ b/gallery_dl/extractor/booru.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright 2015-2022 Mike Fährmann +# Copyright 2015-2023 Mike Fährmann # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as @@ -27,6 +27,10 @@ class BooruExtractor(BaseExtractor): notes = self.config("notes", False) fetch_html = tags or notes + url_key = self.config("url") + if url_key: + self._file_url = operator.itemgetter(url_key) + for post in self.posts(): try: url = self._file_url(post) |
