From 79fc9c066c9d4ccaca84c0c6a37708a4501d28a7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 12 Feb 2025 12:29:42 +0000 Subject: [PATCH 1/2] Bump pyytlounge from 2.0.0 to 2.1.1 Bumps [pyytlounge](https://github.com/FabioGNR/pyytlounge) from 2.0.0 to 2.1.1. - [Release notes](https://github.com/FabioGNR/pyytlounge/releases) - [Changelog](https://github.com/FabioGNR/pyytlounge/blob/master/CHANGELOG.md) - [Commits](https://github.com/FabioGNR/pyytlounge/compare/v2.0.0...v2.1.1) --- updated-dependencies: - dependency-name: pyytlounge dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 8a23df1..740759d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ aiohttp==3.9.5 appdirs==1.4.4 argparse==1.4.0 async-cache==1.1.1 -pyytlounge==2.0.0 +pyytlounge==2.1.1 rich==13.9.4 ssdp==1.3.0 textual==1.0.0 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 2/2] 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: