From f8130da1d682810f2ee49d55b2c5a20fab00b46d Mon Sep 17 00:00:00 2001 From: Nick Bisby Date: Sat, 2 Mar 2019 16:28:46 -0600 Subject: [PATCH] Fix upload script --- components/LibList.xml | 7 ++----- dev_upload.sh | 3 ++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/components/LibList.xml b/components/LibList.xml index 1627c286..2a72bf3a 100644 --- a/components/LibList.xml +++ b/components/LibList.xml @@ -35,7 +35,6 @@ end sub function setData() - print "HI" libs = m.top.liblist rowsize = m.top.rowSize @@ -72,15 +71,13 @@ item.labelText = datum.name end for end for - print "HI" - print m.top.itemSelected return data end function function onItemSelected() - print "DETECTED THAT SELECTION" x = m.top.rowItemSelected - print "row " + x[0] + " col " + x[1] + target = m.top.content.getChild(x[0]).getChild(x[1]) + print "Selected: " + target.labelText end function ]]> diff --git a/dev_upload.sh b/dev_upload.sh index 369ae504..b253331b 100755 --- a/dev_upload.sh +++ b/dev_upload.sh @@ -11,7 +11,8 @@ if [ -z "$ROKU_DEV_TARGET" ]; then exit 1 fi -zip jellyfin-roku.zip -r ./* +[ -f jellyfin-roku.zip ] && rm jellyfin-roku.zip +zip jellyfin-roku.zip manifest -r ./components -r ./source -r ./images curl -f -sS --user rokudev:$ROKU_DEV_PASSWORD --anyauth -F "mysubmit=Install" -F "archive=@jellyfin-roku.zip" -F "passwd=" http://$ROKU_DEV_TARGET/plugin_install \ | python -c 'import sys, re; print("\n".join(re.findall("(.*?)", sys.stdin.read(), re.DOTALL)))'