Fix upload script

This commit is contained in:
Nick Bisby 2019-03-02 16:28:46 -06:00
parent 67b5a6be59
commit f8130da1d6
No known key found for this signature in database
GPG Key ID: F6E0C4E6D0B5EB36
2 changed files with 4 additions and 6 deletions

View File

@ -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
]]>
</script>

View File

@ -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("<font color=\"red\">(.*?)</font>", sys.stdin.read(), re.DOTALL)))'