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

[Question] I have a question about youtube-dl #18275

Closed
Niggolo opened this issue Nov 22, 2018 · 5 comments
Closed

[Question] I have a question about youtube-dl #18275

Niggolo opened this issue Nov 22, 2018 · 5 comments
Labels

Comments

@Niggolo
Copy link

@Niggolo Niggolo commented Nov 22, 2018

Im using my custom gui for send comands to youtube-dl and im using a method for multiple download (Select 20 links and auto download it 1 by 1).

So i would like to know if is possible to make youtube-dl start in background or aleast not going foreground at the current app or anything else im using in that moment because the console keep popup every time a new download comand is sent to it

thank you!

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Nov 22, 2018

This has nothing to do with youtube-dl and depends on how you execute external process or your UI framework does. Check it's doc.

@dstftw dstftw closed this Nov 22, 2018
@Niggolo
Copy link
Author

@Niggolo Niggolo commented Nov 22, 2018

It is nothing complex, i just send the command to the cmd with the gui, im not using any framework.

commandToExecute = "cmd.exe /c start "+ YOUTUBEDLDIRECTORY + ecttt....

I will try to find something related to windows console then, thank you !

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Nov 22, 2018

Do you even aware what does your command mean? You're running start.exe process via cmd.exe that literally:

C:\Dev\youtube-dl\master>start /?
Starts a separate window to run a specified program or command.

and runs youtube-dl.exe in that window.
What you should do is run youtube-dl.exe directly.

@dstftw dstftw added the invalid label Nov 22, 2018
@Niggolo
Copy link
Author

@Niggolo Niggolo commented Nov 22, 2018

My friend helped me and i just learned a very very basic java language :P but yeah i never noticed this and i will try it directly

@Niggolo
Copy link
Author

@Niggolo Niggolo commented Nov 22, 2018

i just solved addeding /min after /start:

commandToExecute = "cmd.exe /c start /min "+ YOUTUBEDLDIRECTORY + ecttt....

Also i cant run youtube-dl.exe directly i get some weird error probabily because the gui is scripted to work with this method, anyway thank you !

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.