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

Freezes with youtube-dl v2017.01.10 #49

Open
chinshr opened this issue Jan 10, 2017 · 2 comments
Open

Freezes with youtube-dl v2017.01.10 #49

chinshr opened this issue Jan 10, 2017 · 2 comments

Comments

@chinshr
Copy link

chinshr commented Jan 10, 2017

Works on the command line like this:

$ youtube-dl --version
2017.01.10
$ youtube-dl https://www.youtube.com/watch?v=O831FpXh9HM&list=PLZhRxE9191zOGgHxF7TE6bRC1ETO6ya3A

but not within ruby:

YoutubeDL.download "https://www.youtube.com/watch?v=O831FpXh9HM&list=PLZhRxE9191zOGgHxF7TE6bRC1ETO6ya3A", output: "/tmp/ytdl.mp4"
@sapslaj
Copy link
Member

sapslaj commented Jan 22, 2017

Hi sorry for the late reply. The issue looks like youtube-dl is treating this URL as a playlist, and right now this gem is very bad at handling playlists. Playlists should be fixed in v0.4 but I have no idea when that will become a thing. For now, the best solution is to just add playlist: false to the options hash to only download the video and not try to download the entire playlist. So your code would look like this:

YoutubeDL.download "https://www.youtube.com/watch?v=O831FpXh9HM&list=PLZhRxE9191zOGgHxF7TE6bRC1ETO6ya3A", output: "/tmp/ytdl.mp4", playlist: false

@chinshr
Copy link
Author

chinshr commented Jan 22, 2017

Thanks, I will give it a try!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants