mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2025-12-06 20:06:44 +03:00
Merge pull request #221 from dmunozv04/dependabot/pip/pyytlounge-2.1.1
Bump pyytlounge from 2.0.0 to 2.1.1
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user