Unverified Commit 66774a96 authored by TheTechRobo's avatar TheTechRobo Committed by GitHub
Browse files

Merge pull request #81 from TheTechRobo/TheTechRobo-patch-2

parents 3209f430 67a300d7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ class WaybackMachine(YouTubeService):
    @classmethod
    async def _run(cls, id, session: aiohttp.ClientSession) -> typing.Self:
        ismeta = False
        lien = f"https://web.archive.org/web/2oe_/http://wayback-fakeurl.archive.org/yt/{id}"
        lien = f"https://web.archive.org/web/1oe_/http://wayback-fakeurl.archive.org/yt/{id}"
        async with session.head(lien, allow_redirects=False, timeout=15) as response:
            redirect = response.headers.get("location")
            archived = bool(redirect) # if there's a redirect, it's archived