[gelbooru] fix video URLs (#7345)

update subdomain to 'img4'
This commit is contained in:
Mike Fährmann
2025-04-12 08:41:10 +02:00
parent 232d4545f4
commit 85808a954f
2 changed files with 13 additions and 12 deletions

View File

@@ -114,11 +114,12 @@ class GelbooruBase():
md5 = post["md5"]
path = "/images/{}/{}/{}.webm".format(md5[0:2], md5[2:4], md5)
post["_fallback"] = GelbooruBase._video_fallback(path)
url = "https://img3.gelbooru.com" + path
url = "https://img4.gelbooru.com" + path
return url
@staticmethod
def _video_fallback(path):
yield "https://img3.gelbooru.com" + path
yield "https://img2.gelbooru.com" + path
yield "https://img1.gelbooru.com" + path