26 lines
708 B
XML
26 lines
708 B
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<component name="SearchData" extends="ContentNode">
|
|
<interface>
|
|
<field id="title" type="string" />
|
|
<field id="posterUrl" type="string" />
|
|
<field id="mediaType" type="string" />
|
|
<field id="mediaID" type="string" />
|
|
<field id="full_data" type="associativearray" onChange="setFields" />
|
|
</interface>
|
|
<script type="text/brightscript">
|
|
<![CDATA[
|
|
sub setFields()
|
|
datum = m.top.full_data
|
|
m.top.title = datum.name
|
|
m.top.mediaID = datum.id
|
|
m.top.mediaType = datum.Type
|
|
if datum.posterURL <> invalid
|
|
m.top.posterURL = datum.posterURL
|
|
else
|
|
m.top.posterURL = ""
|
|
end if
|
|
end sub
|
|
]]>
|
|
</script>
|
|
</component>
|