update linux uri handler
This commit is contained in:
parent
8bd6fb5b4e
commit
74250982d1
1 changed files with 7 additions and 2 deletions
|
@ -26,7 +26,12 @@ ARG=${1:-}
|
||||||
if [ -z "$ARG" ]; then
|
if [ -z "$ARG" ]; then
|
||||||
URL=""
|
URL=""
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
/usr/bin/xdg-open "http://localhost:5279/$URL"
|
/usr/bin/xdg-open "http://localhost:5279$URL"
|
||||||
|
|
Loading…
Reference in a new issue