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

Whether I can call youtube-dl directly from PowerShell script? #24298

Closed
hachi1030-Allen opened this issue Mar 9, 2020 · 1 comment
Closed

Whether I can call youtube-dl directly from PowerShell script? #24298

hachi1030-Allen opened this issue Mar 9, 2020 · 1 comment
Labels

Comments

@hachi1030-Allen
Copy link

@hachi1030-Allen hachi1030-Allen commented Mar 9, 2020

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • [] I've searched the bugtracker for similar questions including closed ones

Question

youtube-dl.exe is quite an excellent tool for using. However, I do want to automation some work, so I wrote a powershell script to make life easier.

The thing is, currently from my PowerShell script, I need to launch cmd.exe to run the commands for youtube-dl, that ends with I can never do error handling.

Like yesterday, there is some random issue with one video subtitle's download, but I cannot get the error and some of my PowerShell script is not working normally.

So, I 'd like to ask below things:

  1. Whether youtube-dl can be called from programming language or scripts language such as Powershell, C#, Java, etc?
  2. If not, whether it's possible to get the cmd running result such as my scenario? I launch cmd.exe and run the command and when the command is done, my PowerShell script can get some result or something?

Thanks and look forward to the reply.

Allen

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 9, 2020

youtube-dl can be called from anywhere as any other executable.

@dstftw dstftw closed this Mar 9, 2020
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
2 participants
You can’t perform that action at this time.