Add configure script

This commit is contained in:
0d0 2025-02-14 19:35:55 +01:00
parent ae6b7b3a24
commit 88c5e9af48
3 changed files with 37 additions and 1 deletions

View file

@ -1,6 +1,7 @@
import { create } from 'youtube-dl-exec';
import { YTDLP_PATH } from '$env/static/private';
import { env } from '$env/dynamic/private';
import { spawn } from 'node:child_process';
const YTDLP_PATH: string = env.YTDLP_PATH as string
export const ytdl = create(YTDLP_PATH);