diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/ytdlp_download.ts | 0 | ||||
-rw-r--r-- | scripts/ytdlp_flatten.ts | 12 |
2 files changed, 12 insertions, 0 deletions
diff --git a/scripts/ytdlp_download.ts b/scripts/ytdlp_download.ts new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/scripts/ytdlp_download.ts diff --git a/scripts/ytdlp_flatten.ts b/scripts/ytdlp_flatten.ts new file mode 100644 index 0000000..f2eaa65 --- /dev/null +++ b/scripts/ytdlp_flatten.ts @@ -0,0 +1,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); +} |