diff options
| author | 2023-07-03 00:57:03 -0400 | |
|---|---|---|
| committer | 2023-07-03 00:57:03 -0400 | |
| commit | ef30b1fa552fd4ceebdd14bbcc16f30f430883f8 (patch) | |
| tree | cf680fbc0801f3090b28c190b7dd4a9d0fe1f454 /gallery_dl/extractor/sankaku.py | |
| parent | 9fb906aeb3816abb42f459d1b67e35024e6f2348 (diff) | |
New upstream version 1.25.7.upstream/1.25.7
Diffstat (limited to 'gallery_dl/extractor/sankaku.py')
| -rw-r--r-- | gallery_dl/extractor/sankaku.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gallery_dl/extractor/sankaku.py b/gallery_dl/extractor/sankaku.py index f36051b..09e5421 100644 --- a/gallery_dl/extractor/sankaku.py +++ b/gallery_dl/extractor/sankaku.py @@ -46,10 +46,15 @@ class SankakuExtractor(BooruExtractor): def _file_url(self, post): url = post["file_url"] - if not url and self._warning: - self.log.warning( - "Login required to download 'contentious_content' posts") - SankakuExtractor._warning = False + if not url: + if post["status"] != "active": + self.log.warning( + "Unable to download post %s (%s)", + post["id"], post["status"]) + elif self._warning: + self.log.warning( + "Login required to download 'contentious_content' posts") + SankakuExtractor._warning = False elif url[8] == "v": url = "https://s.sankakucomplex.com" + url[url.index("/", 8):] return url |
