From b6d105a519c66a12f6d9b1b4a594b0f5e5289447 Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Fri, 25 Apr 2025 21:27:04 -0400 Subject: [PATCH] refactor(sponsorblock): hashPrefix -> hash_prefix --- sponsorblock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sponsorblock.py b/sponsorblock.py index 7bdc7c3..10b9207 100644 --- a/sponsorblock.py +++ b/sponsorblock.py @@ -22,10 +22,10 @@ async def get_segments(video_id: str): if video_id in sponsorblock_cache: return sponsorblock_cache[video_id] - hashPrefix = hashlib.sha256(video_id.encode()).hexdigest()[:4] + hash_prefix = hashlib.sha256(video_id.encode()).hexdigest()[:4] session = aiohttp.ClientSession() response = await session.get( - f"https://sponsor.ajay.app/api/skipSegments/{hashPrefix}", + f"https://sponsor.ajay.app/api/skipSegments/{hash_prefix}", params={"categories": categories}, ) if response.status == 200 and (