From 0a9f6d826ab9af92f96c95aacac1b3ec18939f70 Mon Sep 17 00:00:00 2001 From: mitt3n <102060045+mitt3n@users.noreply.github.com> Date: Thu, 29 Aug 2024 08:35:56 -0500 Subject: [PATCH] Fixing header check location for webms (#587) --- steam/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steam/media.py b/steam/media.py index 962df070..6ea2e7e7 100644 --- a/steam/media.py +++ b/steam/media.py @@ -156,7 +156,7 @@ def test_gif(h: bytes) -> Literal["gif"] | None: @tests.append def test_webm(h: bytes) -> Literal["webm"] | None: - if h[29:36] == b"\x82\x84webmB": + if h[22:29] == b"\x82\x84webmB": return "webm"