Skip to content

Instantly share code, notes, and snippets.

@andriyor
Created July 9, 2020 15:15
Show Gist options
  • Save andriyor/efe57b496ed33ddd7a7b4501b0c99945 to your computer and use it in GitHub Desktop.
Save andriyor/efe57b496ed33ddd7a7b4501b0c99945 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
DL_OUTPUT=$(youtube-dl "$1" --get-url);
URLS=($(echo "$DL_OUTPUT" | tr ',' '\n'))
snap run vlc "${URLS[0]}" --input-slave "${URLS[1]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment