update linux uri handler

This commit is contained in:
Alex Grintsvayg 2016-05-06 17:38:57 -04:00
parent 8bd6fb5b4e
commit 74250982d1

View file

@ -26,7 +26,12 @@ ARG=${1:-}
if [ -z "$ARG" ]; then
URL=""
else
URL="?watch=$(urlencode "$(echo "$ARG" | cut -c 8-)")"
NAME=$(echo "$ARG" | cut -c 8-)
if [ -z "$NAME" -o "$NAME" == "lbry" ]; then
URL=""
else
URL="/?watch=$(urlencode "$NAME")"
fi
fi
/usr/bin/xdg-open "http://localhost:5279/$URL"
/usr/bin/xdg-open "http://localhost:5279$URL"