Closed xkungxfu closed 6 months ago
why not just use yt-dlp command like
import os
os.system("yt-dlp https://youtu.be/xxxxxxx")
I don't know how to execute the command in async and multiple threads.
maybe subprocess.Popen("yt-dlp https://youtu.be/xxxxxxx")
is better? it can be run multiple times without waiting for it to complete, and does not require async
thank you. I will try it as your advice.
The point of MeTube is the UI, so use cases that don't involve the UI aren't part of this. Closing
because I want to download videos programmatically.I don't nead a node js website.
I write some code to try, but failed.
so, my question is how to modify my code. to start download task only on python side .
It seems that the code "await self.event.wait()" break the function "__download". I am not sure, and have no idea. Please give some suggestions ,thanks!