Skip to content

Commit

Permalink
Merge pull request #221 from dmunozv04/dependabot/pip/pyytlounge-2.1.1
Browse files Browse the repository at this point in the history
Bump pyytlounge from 2.0.0 to 2.1.1
  • Loading branch information
dmunozv04 authored Feb 12, 2025
2 parents 2b9e1f8 + 7ea0b86 commit c7cb4e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions src/iSponsorBlockTV/ytlounge.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import asyncio
import json
from typing import Any, List

import pyytlounge
from aiohttp import ClientSession
Expand Down Expand Up @@ -62,8 +63,8 @@ async def subscribe_monitored(self, callback):
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()
Expand Down Expand Up @@ -158,7 +159,7 @@ def _process_event(self, event_id: int, event_type: str, args):
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:
Expand Down

0 comments on commit c7cb4e8

Please sign in to comment.