Merge pull request #277 from sternma/feat-use-upstream-autoplay

remove set_auto_play_mode
This commit is contained in:
David
2025-04-12 15:09:50 +02:00
committed by GitHub

View File

@@ -192,11 +192,6 @@ class YtLoungeApi(pyytlounge.YtLoungeApi):
{"volume": self.volume_state.get("volume", 100), "muted": mute_str},
)
async def set_auto_play_mode(self, enabled: bool):
await super()._command(
"setAutoplayMode", {"autoplayMode": "ENABLED" if enabled else "DISABLED"}
)
async def play_video(self, video_id: str) -> bool:
return await self._command("setPlaylist", {"videoId": video_id})