Hacker News new | comments | show | ask | jobs | submit login

Thank you for this! I used it to make a little script to download audio from each lecture:

  youtube-dl --get-id https://www.youtube.com/playlist?list=PLyGKBDfnk-iAQx4Kw9JeVqspbg77sfAK0 -i > ids.txt
  while read id; do
      youtube-dl -f bestaudio https://www.youtube.com/watch?v=$id
  done < ids.txt



AFAIK, youtube-dl will find all videos and download them if fed a playlist URL. I'm curious if this script is a workaround for some obscure brokenness or something.


youtube-dl already has extract audio feature built in. try youtube-dl -x playlist-url


Ah. I knew there was a rational explanation :) I missed that bit.


Huh, TIL. Thanks!




Applications are open for YC Winter 2019

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: