summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/sankaku.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/sankaku.py')
-rw-r--r--gallery_dl/extractor/sankaku.py13
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