1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 21:44:21 +00:00
This commit is contained in:
Steffo 2018-11-09 23:11:21 +01:00
parent fab827b032
commit 601281fe33

View file

@ -179,7 +179,7 @@ class Video:
"key": 'FFmpegExtractAudio', "key": 'FFmpegExtractAudio',
"preferredcodec": 'opus' "preferredcodec": 'opus'
}], }],
"outtmpl": f"./opusfiles/{self.file}", "outtmpl": self.file,
"progress_hooks": progress_hooks, "progress_hooks": progress_hooks,
"quiet": True}) as ytdl: "quiet": True}) as ytdl:
await loop.run_in_executor(executor, functools.partial(ytdl.download, [self.url])) await loop.run_in_executor(executor, functools.partial(ytdl.download, [self.url]))