Commit 73242ced authored by TheTechRobo's avatar TheTechRobo
Browse files

Use HEAD requests for Hobune.stream

parent e3bf1173
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -232,7 +232,7 @@ class Hobune(YouTubeService):
        lastupdated = time.time()
        for url in urls_to_try:
            url = url.format(id)
            async with session.get(url, headers={"User-Agent": user_agent}, timeout=5) as resp:
            async with session.head(url, headers={"User-Agent": user_agent}, timeout=5) as resp:
                code = resp.status
                raw.append(code)
            if code == 200: