workaround for yt quirks

This commit is contained in:
Christoph Stahl 2022-11-15 17:10:03 +01:00
parent 73129ba9af
commit 680a31b49f
2 changed files with 2 additions and 2 deletions

View file

@ -128,9 +128,9 @@ async def handle_pop_then_get_next(sid, data={}):
state = clients[room]
await state.queue.popleft()
await sio.emit("state", state.queue.to_dict(), room=room)
current = await state.queue.peek()
await sio.emit("state", state.queue.to_dict(), room=room)
await sio.emit("play", current.to_dict(), room=sid)

View file

@ -27,7 +27,7 @@ class YoutubeSource(Source):
input_vo_keyboard=True,
osc=True,
ytdl=True,
script_opts="ytdl_hook-ytdl_path=yt-dlp",
script_opts="ytdl_hook-ytdl_path=yt-dlp,ytdl_hook-exclude='%.pls$'",
ytdl_format="bestvideo[height<=720]+bestaudio/best[height<=720]",
fullscreen=True,
)