Advertisement
metalx1000

Youtube-dl create list of Video URL's from playlist

Oct 23rd, 2018
933
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.36 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. # Takes a YouTube URI to a playlist (fairly liberal, it's fine as long
  3. # as the playlist id can be extracted), and prints a list of URIs in a
  4. # YouTube playlist.
  5. #
  6. # Requires youtube-dl 2014.10.24, tested on youtube-dl
  7. # 2014.11.02.1. Feature subject to change.
  8. youtube-dl -j --flat-playlist "$1" | jq -r '.id' | sed 's_^_https://youtube.com/v/_'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement