From 03a8014d2f1267f457a3f8241076d4c3df5b0008 Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Wed, 22 Jan 2025 14:53:21 -0500 Subject: [PATCH] refactor(sponsorblock): use params and include sponsor category as well --- sponsorblock.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sponsorblock.py b/sponsorblock.py index c381c36..cb7d474 100644 --- a/sponsorblock.py +++ b/sponsorblock.py @@ -12,7 +12,8 @@ async def get_segments(videoId: str): hashPrefix = hashlib.sha256(videoId.encode()).hexdigest()[:4] session = aiohttp.ClientSession() response = await session.get( - f'https://sponsor.ajay.app/api/skipSegments/{hashPrefix}?categories=["music_offtopic"]' + f"https://sponsor.ajay.app/api/skipSegments/{hashPrefix}", + params={"categories": '["sponsor", "music_offtopic"]'}, ) if response.status == 200 and ( results := list(