forked from LBRYCommunity/lbry-sdk
urihandler takes you to show, not watch
This commit is contained in:
parent
06be60e3a3
commit
47c92f04d2
2 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@ class LBRYURIHandler(object):
|
||||||
if lbry_name == "lbry" or lbry_name == "":
|
if lbry_name == "lbry" or lbry_name == "":
|
||||||
webbrowser.open(UI_ADDRESS)
|
webbrowser.open(UI_ADDRESS)
|
||||||
else:
|
else:
|
||||||
webbrowser.open(UI_ADDRESS + "/?watch=" + lbry_name)
|
webbrowser.open(UI_ADDRESS + "/?show=" + lbry_name)
|
||||||
|
|
||||||
def handle_linux(self, lbry_name):
|
def handle_linux(self, lbry_name):
|
||||||
try:
|
try:
|
||||||
|
@ -43,7 +43,7 @@ class LBRYURIHandler(object):
|
||||||
if lbry_name == "lbry" or lbry_name == "":
|
if lbry_name == "lbry" or lbry_name == "":
|
||||||
webbrowser.open(UI_ADDRESS)
|
webbrowser.open(UI_ADDRESS)
|
||||||
else:
|
else:
|
||||||
webbrowser.open(UI_ADDRESS + "/?watch=" + lbry_name)
|
webbrowser.open(UI_ADDRESS + "/?show=" + lbry_name)
|
||||||
|
|
||||||
|
|
||||||
def main(args):
|
def main(args):
|
||||||
|
|
|
@ -41,7 +41,7 @@ else
|
||||||
if [ -z "$NAME" -o "$NAME" == "lbry" ]; then
|
if [ -z "$NAME" -o "$NAME" == "lbry" ]; then
|
||||||
URL=""
|
URL=""
|
||||||
else
|
else
|
||||||
URL="/?watch=$(urlencode "$NAME")"
|
URL="/?show=$(urlencode "$NAME")"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue