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

Is there a faster way to get a youtube playlist_title #23327

Closed
sebma opened this issue Dec 5, 2019 · 2 comments
Closed

Is there a faster way to get a youtube playlist_title #23327

sebma opened this issue Dec 5, 2019 · 2 comments
Labels

Comments

@sebma
Copy link

@sebma sebma commented Dec 5, 2019

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

Hi,

Is there a faster way to get a youtube playlist_title ?

So far, I've tried this :

$ time \youtube-dl --ignore-config --ignore-errors --playlist-items 1 -j https://www.youtube.com/playlist?list=PLE6CB0A77537DA314 | jq -r '.playlist_title'
raiders of the lost books

real	0m7.754s
user	0m5.984s
sys	0m0.112s
@sebma sebma added the question label Dec 5, 2019
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 6, 2019

--flat-playlist

@dstftw dstftw closed this Dec 6, 2019
@sebma
Copy link
Author

@sebma sebma commented Dec 6, 2019

@dstftw Thanks a lot !
I also had tried --flat-playlist with the -j, --dump-json option but it only fetch the item titles instead of the playlist title :

$ time \youtube-dl --flat-playlist --ignore-config --ignore-errors -j https://www.youtube.com/playlist?list=PLE6CB0A77537DA314 | jq -r .title
Raiders of the Lost Book - Ep 1 - By Michael Rood
Raiders of the Lost Book - Ep 2 - By Michael Rood
Raiders of the Lost Book - Ep 3 - By Michael Rood
Raiders of the Lost Book - Ep 4 - By Michael Rood
Raiders of the Lost Book - Ep 5 - By Michael Rood
Raiders of the Lost Book - Ep 6 - By Michael Rood
Raiders of the Lost Book - Ep 7 - By Michael Rood
Raiders of the Lost Book - Ep 8 - By Michael Rood
Raiders of the Lost Book - Ep 9 - By Michael Rood
Raiders of the Lost Book - Ep 10 - By Michael Rood

real	0m4.811s
user	0m4.340s
sys	0m0.184s

Now, the below command (with the -J, --dump-single-json option) gives me what I exactly wanted :

$ time \youtube-dl --flat-playlist --ignore-config --ignore-errors -J https://www.youtube.com/playlist?list=PLE6CB0A77537DA314 | jq -r .title
raiders of the lost books

real	0m5.573s
user	0m5.104s
sys	0m0.156s

G-d bless you abundantly.

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.