Hacker News new | ask | show | jobs
by saamm 2937 days ago
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
1 comments

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!