#! /bin/zsh acestream () { local url=$1 local stream=${url//acestream:\/\//} local local_url=http://127.0.0.1:6878/LOAD/PID=${stream} # get at https://github.com/tarasian666/acestream local dir=${HOME}/acestream/acestream-master $dir/start.py & sleep 10 sudo omxplayer -r -o hdmi --live $local_url } sopcast () { # get the stuff from https://github.com/alesnav/p2ptv-pi local dir=${HOME}/sopcast/sop2/p2ptv-pi-master/sopcast local channel=${1:-6002} local digit=1234 # ? local ref=6878 local sop_url=sop://broker.sopcast.com/${channel} local local_url=http://localhost:${ref}/tv.asf nice -10 \ ${dir}/qemu-i386 \ ${dir}/lib/ld-linux.so.2 --library-path ${dir}/lib \ ${dir}/sp-sc-auth $sop_url $digit $ref \ > /dev/null & sleep 10 sudo nice -10 omxplayer -r -o hdmi --live $local_url }