2019-03-05 04:31:58 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
|
|
<component name="MovieItemData" extends="ContentNode">
|
|
|
|
<interface>
|
2019-03-07 05:30:06 +00:00
|
|
|
<field id="title" type="string" />
|
2019-03-05 04:31:58 +00:00
|
|
|
<field id="posterUrl" type="string" />
|
|
|
|
<field id="movieID" type="string" />
|
2019-03-08 02:03:19 +00:00
|
|
|
<field id="description" type="string" />
|
2019-03-10 05:53:36 +00:00
|
|
|
<field id="full_data" type="associativearray" onChange="setFields" />
|
|
|
|
<function name="getPoster" />
|
2019-03-05 04:31:58 +00:00
|
|
|
</interface>
|
2019-03-10 05:53:36 +00:00
|
|
|
<script type="text/brightscript" uri="pkg:/source/config.brs" />
|
|
|
|
<script type="text/brightscript" uri="pkg:/source/JellyfinAPI.brs" />
|
|
|
|
<script type="text/brightscript">
|
|
|
|
<![CDATA[
|
|
|
|
sub setFields()
|
|
|
|
datum = m.top.full_data
|
|
|
|
m.top.title = datum.name
|
|
|
|
m.top.movieID = datum.id
|
|
|
|
m.top.posterURL = ImageURL(datum.id)
|
|
|
|
m.top.description = datum.overview
|
|
|
|
end sub
|
|
|
|
]]>
|
|
|
|
</script>
|
2019-03-05 04:31:58 +00:00
|
|
|
</component>
|