Created
September 24, 2017 08:09
-
-
Save darnir/da3e981529446e5945c1136091da4079 to your computer and use it in GitHub Desktop.
Stream from server
This file contains hidden or 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
stream () | |
{ | |
local URL="$1"; | |
local MPV_PARAM="${@:2}"; | |
local USER="go7box"; | |
local PASS=$(pass Server/rutorrent/${USER}); | |
local _final_url=$(sed -e "s#\(https://\)#\1${USER}:${PASS}@#" <<< "$URL"); | |
echo "$_final_url"; | |
mpv --cache=2048000 --cache-secs=1000 "$MPV_PARAM" "$_final_url" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment