Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua - How to yield until video audio extracts into mp3 format #13280

Closed
Collect1ve opened this issue Jun 3, 2017 · 0 comments
Closed

Lua - How to yield until video audio extracts into mp3 format #13280

Collect1ve opened this issue Jun 3, 2017 · 0 comments

Comments

@Collect1ve
Copy link

@Collect1ve Collect1ve commented Jun 3, 2017

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.

@Collect1ve Collect1ve closed this Jun 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.