[aibooru] fix download URLs (#8212)

handle URLs starting with '//'
This commit is contained in:
Mike Fährmann
2025-09-14 08:17:29 +02:00
parent 34f9753c0c
commit 7fb15742da

View File

@@ -102,7 +102,10 @@ class DanbooruExtractor(BaseExtractor):
post["extension"] = "webm"
if url[0] == "/":
url = self.root + url
if url[1] == "/":
url = "https:" + url
else:
url = self.root + url
post.update(data)
yield Message.Directory, post