monking / pirate-radio

command-line internet radio station
4 stars 2 forks source link

integrate `youtube-dl` #5

Open ghost opened 9 years ago

ghost commented 9 years ago
youtube-dl -f bestaudio https://www.youtube.com/playlist?list=PL3EE89BB95289249F --exec './pirr -b {}'

This won't quite work, because pirate-radio goes into the background, and doesn't block youtube-dl from downloading the next.

either...

  1. enable pirate-radio to be in the foreground again
  2. create a playlist with generic sequential names, start playing, then load all videos in the list into a temporary folder with those generic names.
  3. buffer only the next video
monking commented 9 years ago
foo="$((youtube-dl --quiet --flat-playlist https://www.youtube.com/playlist?list=PLURBlBqSzVmH8ZxBwnIiQgTDi7hbcA89k) 2>&1)"
monking commented 9 years ago

It's not streaming music, but downloading from youtube-dl and building a playlist is implemented in 68930b9.