From 7ea0b8642c952c5d1f86cc7e9a30a946493794c1 Mon Sep 17 00:00:00 2001 From: dmunozv04 <39565245+dmunozv04@users.noreply.github.com> Date: Wed, 12 Feb 2025 13:43:03 +0100 Subject: [PATCH] Update ytlounge client to be compatible with pyytlounge v2.1.1 --- src/iSponsorBlockTV/ytlounge.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/iSponsorBlockTV/ytlounge.py b/src/iSponsorBlockTV/ytlounge.py index c77db0d..1b73690 100644 --- a/src/iSponsorBlockTV/ytlounge.py +++ b/src/iSponsorBlockTV/ytlounge.py @@ -1,5 +1,6 @@ import asyncio import json +from typing import Any, List import pyytlounge from aiohttp import ClientSession @@ -62,8 +63,8 @@ class YtLoungeApi(pyytlounge.YtLoungeApi): return self.subscribe_task # Process a lounge subscription event - def _process_event(self, event_id: int, event_type: str, args): - self.logger.debug(f"process_event({event_id}, {event_type}, {args})") + def _process_event(self, event_type: str, args: List[Any]): + self.logger.debug(f"process_event({event_type}, {args})") # (Re)start the watchdog try: self.subscribe_task_watchdog.cancel() @@ -158,7 +159,7 @@ class YtLoungeApi(pyytlounge.YtLoungeApi): elif event_type == "onAutoplayModeChanged": create_task(self.set_auto_play_mode(self.auto_play)) - super()._process_event(event_id, event_type, args) + super()._process_event(event_type, args) # Set the volume to a specific value (0-100) async def set_volume(self, volume: int) -> None: