Whitespace and minor cleanup
This commit is contained in:
parent
0f15d6983f
commit
00bcb21ca1
|
@ -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>
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
text="Submit"
|
||||
translation="[0, 500]"
|
||||
/>
|
||||
|
||||
</children>
|
||||
<script type="text/brightscript" uri="pkg:/source/config.brs" />
|
||||
<script type="text/brightscript">
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -7,5 +7,4 @@
|
|||
translation="[150,150]"
|
||||
/>
|
||||
</children>
|
||||
|
||||
</component>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user