fix yt-dlp path

This commit is contained in:
dsc 2023-09-02 21:38:14 +03:00
parent 311e3279bf
commit 238022c052

View File

@ -33,8 +33,9 @@ class YouTube:
raise Exception("Song already exists.") raise Exception("Song already exists.")
try: try:
path_yt_dlp = os.path.join(settings.cwd, "venv", "bin", "yt-dlp")
proc = await asyncio.create_subprocess_exec( proc = await asyncio.create_subprocess_exec(
*["yt-dlp", *[path_yt_dlp,
"--add-metadata", "--add-metadata",
"--write-all-thumbnails", "--write-all-thumbnails",
"--write-info-json", "--write-info-json",