aboutsummaryrefslogtreecommitdiff
path: root/scripts/ytdlp_flatten.ts
blob: f2eaa65fa7ffa451abb6c595ca24666945ecaf4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
const ws = new WebSocket(Deno.args[0])

ws.onerror = () => console.error("ws error")
ws.onclose = () => console.error("ws closed")
ws.onopen = () => {
    ws.send(JSON.stringify({ t: "register", name: "yt-dlp playlist flattener", sources: ["ytdlp-flatten"] }))
}
ws.onmessage = ev => {
    console.log(ev.data);
}