Skip to content

Instantly share code, notes, and snippets.

@Nihlus
Last active March 9, 2016 11:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nihlus/b90e36cad25520a15dd9 to your computer and use it in GitHub Desktop.
Save Nihlus/b90e36cad25520a15dd9 to your computer and use it in GitHub Desktop.
#!/bin/bash
DEFAULTPLAYER=mpv
CLIPCONTENT=$(xclip -selection clipboard -o)
if [[ $CLIPCONTENT != http* ]]; then
CLIPCONTENT=""
fi
livestreamer $(zenity --entry --title="Twitch VOD" --text "Enter the URL to the VOD:" --entry-text="$CLIPCONTENT") source --player-passthrough hls --player $DEFAULTPLAYER --player-args '{filename} --title="Twitch"'
Copy link

ghost commented Mar 9, 2016

Cool, thanks for sharing. I made a 4-up script: https://gist.github.com/dd880a1838dc1132b278

Now, I'm going to re-write it. I didn't know about --player-passthrough hls neither did I think about using zenity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment