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

Ctrl-C doesn't cancel the script #481

Closed
multiwebinc opened this issue Oct 20, 2012 · 6 comments
Closed

Ctrl-C doesn't cancel the script #481

multiwebinc opened this issue Oct 20, 2012 · 6 comments

Comments

@multiwebinc
Copy link

@multiwebinc multiwebinc commented Oct 20, 2012

As the title says, pusing Ctrl-C doesn't kill the script, which it should. The download continues in the background. The only way to stop it is to kill the python process.

$ youtube-dl --version
2012.10.09

@Plaque-fcc
Copy link

@Plaque-fcc Plaque-fcc commented Oct 20, 2012

I observe this manner on slow connections while youtube-dl started to
gather info about playlist/single video/etc and before it switches to
downloading it. But. It was unable to halt by C-c, never it goes
background, are you sure you're not using anything specific to your
system that can cause this behaviour?

@multiwebinc
Copy link
Author

@multiwebinc multiwebinc commented Oct 20, 2012

Actually it was during the download part that I canceled it, not before. However I tried it on another computer running the same OS (Ubuntu 12.04) and it stopped the download fine on this one, so I'm wondering if it could somehow be the other software on the computer that was causing it. Any ideas how I can debug it?

@Plaque-fcc
Copy link

@Plaque-fcc Plaque-fcc commented Oct 20, 2012

No, no ideas.

After some time, I recall there was what you wrote, about a year
ago, with me and youtube-dl. I am still using Ubuntu 11.10, like it was
10 months ago. No, I did not notice how could I debug that, it
disappeared after a while. I remember I was playing with pygtk and
other python modules, and it sometimes can cause unpredictable side
effects. With 12.04 I did not run into such a problem.

@Plaque-fcc
Copy link

@Plaque-fcc Plaque-fcc commented Oct 21, 2012

Yes, I guess why.

Please, check out are you using something like

youtube-dl http://www.youtube.com/watch?v=sao5-VCcRkQ&feature=somethingelse

If true, please, run youtube-dl once again and place the URI in single quotes (').
Also, if you don't mind, you may try once more, but instead of using quotemarks, place
an escape symbol backslash «\» right before the ampersand «&» in the URI, so
it will look like «…watch?v=…&feature=…».

And report what you get in both cases, dear.

@Plaque-fcc
Copy link

@Plaque-fcc Plaque-fcc commented Oct 21, 2012

…or you simply may use 'fg' bash command to grab the background process
back to your fingers.

@multiwebinc
Copy link
Author

@multiwebinc multiwebinc commented Oct 23, 2012

Thanks for getting back. I'm assuming the URI I tried that produced the error had an unescaped & in it. I'll close this for now.

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.