Unverified Commit c29755b6 authored by squishysnuggles's avatar squishysnuggles Committed by GitHub
Browse files

Update finder.py

parent 439727f5
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -355,17 +355,12 @@ class removededm(YouTubeService):
        if not archived:
            lien = None
            check = f"https://removededm.com/wiki/{id}"
            params = {
                "url": check,
                "timestamp": 0
            }
            async with session.get(f"https://removededm.com/wiki/{id}", timeout=8) as resp:
                response2 = await resp.json()
                if code == 200:
                    archived = True
                    redirect = response.headers.get("location")
                    archived = bool(redirect) # if there's a redirect, it's archived
                    ismeta = True

        rawraw = (redirect, response2)
        rawraw = (redirect)
        return cls(
                archived=archived, rawraw=rawraw, available=lien, metaonly=ismeta, comments=False
        )