workaround for yt quirks
This commit is contained in:
parent
73129ba9af
commit
680a31b49f
2 changed files with 2 additions and 2 deletions
|
@ -128,9 +128,9 @@ async def handle_pop_then_get_next(sid, data={}):
|
||||||
state = clients[room]
|
state = clients[room]
|
||||||
|
|
||||||
await state.queue.popleft()
|
await state.queue.popleft()
|
||||||
|
await sio.emit("state", state.queue.to_dict(), room=room)
|
||||||
current = await state.queue.peek()
|
current = await state.queue.peek()
|
||||||
|
|
||||||
await sio.emit("state", state.queue.to_dict(), room=room)
|
|
||||||
await sio.emit("play", current.to_dict(), room=sid)
|
await sio.emit("play", current.to_dict(), room=sid)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ class YoutubeSource(Source):
|
||||||
input_vo_keyboard=True,
|
input_vo_keyboard=True,
|
||||||
osc=True,
|
osc=True,
|
||||||
ytdl=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]",
|
ytdl_format="bestvideo[height<=720]+bestaudio/best[height<=720]",
|
||||||
fullscreen=True,
|
fullscreen=True,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue