48 lines
2.4 KiB
XML
48 lines
2.4 KiB
XML
<component name="PlaylistContentNode" extends="ContentNode">
|
|
<interface>
|
|
<function name="LoadPlaylistPage" />
|
|
<function name="LoadPlaylistAll" />
|
|
|
|
<field id="type" type="string" value="playlist" />
|
|
<field id="loadState" type="string" />
|
|
<!-- index in a feed -->
|
|
<field id="feedSourcesIndex" type="integer" value="-1" />
|
|
<field id="continuation" type="string" />
|
|
<!--
|
|
For some strange reason, the "author" field can only be set once.
|
|
If you try to set it again, it will not be updated, with type mismatch warning:
|
|
|
|
=================================================================
|
|
Warning occurred while setting a field of an RoSGNode
|
|
- Type mismatch occurred when setting the "author" field of a "PlaylistContentNode" node
|
|
at line 112 of file InvidiousToContentNode__lib0.brs
|
|
=================================================================
|
|
|
|
This is very strange, because checking the types, everything seems to be correct.
|
|
The issue does not happen on ANY field, only "author".
|
|
My wild guess is some hardcoded bs on Roku's side.
|
|
This is why "_author" is used instead of "author".
|
|
|
|
Although we use the field "author" in other components, this is the only place where we modify it after
|
|
we set it for the first time (because a saved Playlist belongs to the Invidious user at first, but then
|
|
we can query it's original owner)
|
|
|
|
The issue happens on PlaylistContentNode and ChannelContentNode, but not VideoContentNode.
|
|
-->
|
|
<field id="_author" type="string" />
|
|
<field id="authorId" type="string" />
|
|
<field id="playlistId" type="string" />
|
|
<field id="thumbnail" type="uri" />
|
|
<field id="thumbnailBackground" type="uri" />
|
|
<field id="updated" type="integer" />
|
|
<field id="updatedText" type="string" />
|
|
<field id="videoCount" type="integer" value="-1" />
|
|
<field id="videoCountText" type="string" />
|
|
<field id="viewCount" type="integer" />
|
|
<field id="viewCountText" type="string" />
|
|
<field id="statsText" type="string" />
|
|
<!-- videoId is Mix continuation (playlistId starts with "RD") -->
|
|
<field id="videoId" type="string" />
|
|
<field id="lines" type="stringarray" />
|
|
</interface>
|
|
</component> |