[arcalive] replace 'ac-p.namu' subdomains with 'ac-o.namu' (#7556)

to prevent "403 Forbidden" errors when downloading
This commit is contained in:
Mike Fährmann
2025-05-24 21:14:29 +02:00
parent 3e7a5fcb00
commit 5e07d30d91

View File

@@ -78,7 +78,8 @@ class ArcalivePostExtractor(ArcaliveExtractor):
src = text.unescape(src.partition("?")[0])
if src[0] == "/":
if src[1] == "/":
url = "https:" + src
url = "https:" + src.replace(
"//ac-p.namu", "//ac-o.namu", 1)
else:
url = self.root + src
else: