Created
July 9, 2020 15:15
-
-
Save andriyor/efe57b496ed33ddd7a7b4501b0c99945 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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