Whitespace and minor cleanup

This commit is contained in:
Nick Bisby 2019-03-04 23:18:01 -06:00
parent 0f15d6983f
commit 00bcb21ca1
No known key found for this signature in database
GPG Key ID: F6E0C4E6D0B5EB36
10 changed files with 86 additions and 109 deletions

View File

@ -23,7 +23,7 @@
vertAlignment="center"
itemSpacings="20"
translation="[8,40]" >
<!-- above translation is itemspacings + item height / 2 -->
<!-- above translation is itemspacings + item height / 2 + border-->
<Label id="itemName" horizAlign="left" width="196" height="60" />
<Label id="itemValue" horizAlign="left" width="196" height="60" />
</LayoutGroup>

View File

@ -6,7 +6,6 @@
text="Submit"
translation="[0, 500]"
/>
</children>
<script type="text/brightscript" uri="pkg:/source/config.brs" />
<script type="text/brightscript">

View File

@ -28,8 +28,6 @@
m.top.showRowLabel = [false]
' m.top.observeField("itemSelected", "onItemSelected")
m.top.setfocus(true)
end sub
@ -74,17 +72,6 @@
end for
return data
end function
function onItemSelected()
x = m.top.rowItemSelected
target = m.top.content.getChild(x[0]).getChild(x[1])
print "Selected: " + target.libraryID + " " + target.libraryType
if target.libraryType = "movies" then
print
' TODO - emit a single back up to the very top port
end if
end function
]]>
</script>
</component>

View File

@ -1,12 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<component name="Library" extends="Scene">
<children>
<LibraryRow
id="LibrarySelect"
visible="true"
translation="[150,150]"
/>
</children>
</component>

View File

@ -28,8 +28,6 @@
m.top.showRowLabel = [false]
'm.top.observeField("itemSelected", "onItemSelected")
m.top.setfocus(true)
end sub
@ -74,11 +72,6 @@
end for
return data
end function
function onItemSelected()
x = m.top.rowItemSelected
target = m.top.content.getChild(x[0]).getChild(x[1])
end function
]]>
</script>
</component>

View File

@ -7,5 +7,4 @@
translation="[150,150]"
/>
</children>
</component>

View File

@ -16,6 +16,8 @@ function VideoContent(id) as object
meta = ItemMetaData(id)
content.title = meta.Name
' I'm not super happy that I'm basically re-implementing APIRequest
' but for a ContentNode instead of UrlTransfer
server = get_setting("server")
content.url = Substitute("{0}/emby/Videos/{1}/stream.mp4", server, id)
content.url = content.url + "?Static=true"
@ -27,5 +29,4 @@ function VideoContent(id) as object
end if
return content
end function