Initial commit

This commit is contained in:
Case Duckworth 2020-11-16 07:56:50 -06:00
commit aad8914365
1 changed files with 14 additions and 0 deletions

14
gemstream Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
url="$1"
serv="${url##*//}"
serv="${serv%%/*}"
port="${url#*:}"
port="${port%%/*}"
port="${port:-1965}"
printf '%s\r\n' "$url" |\
openssl s_client -quiet -connect "$serv:$port" |\
tail -c +30 |\
mpv --cache-secs=10 -