Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Here's my code:
local file = assert(io.popen('C:/Users/Connor/Desktop/youtube-dl.exe -x --audio-format mp3 -o C:/Users/Connor/Desktop/DiscordBot/Music/%(title)s.%(ext)s ' .. 'https://www.youtube.com/watch?v=NJlOmDWyoA8', 'w'))I'm trying to make it so I can yield it until the file has finished completely downloading since the file downloads as a .webm file which is not playable, and then converts over to an mp3 format once finished. Does anybody know how to yield this in Lua? If so, please respond ASAP.