-
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #887 from 1hitsong/V1.6.2
Pull V1.6.2 into master
- Loading branch information
Showing
64 changed files
with
6,077 additions
and
10,719 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
sub init() | ||
m.top.functionName = "getNextEpisodeTask" | ||
end sub | ||
|
||
sub getNextEpisodeTask() | ||
m.nextEpisodeData = api_API().shows.getepisodes(m.top.showID, { | ||
UserId: get_setting("active_user"), | ||
StartItemId: m.top.videoID, | ||
Limit: 2 | ||
}) | ||
|
||
m.top.nextEpisodeData = m.nextEpisodeData | ||
end sub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
|
||
<component name="GetNextEpisodeTask" extends="Task"> | ||
<interface> | ||
<field id="videoID" type="string" /> | ||
<field id="showID" type="string" /> | ||
<field id="nextEpisodeData" type="assocarray" /> | ||
</interface> | ||
<script type="text/brightscript" uri="GetNextEpisodeTask.brs" /> | ||
<script type="text/brightscript" uri="pkg:/source/utils/config.brs" /> | ||
<script type="text/brightscript" uri="pkg:/source/roku_modules/api/api.brs" /> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
sub init() | ||
m.itemPoster = m.top.findNode("itemPoster") | ||
m.posterText = m.top.findNode("posterText") | ||
m.posterText.font.size = 30 | ||
m.backdrop = m.top.findNode("backdrop") | ||
|
||
m.itemPoster.observeField("loadStatus", "onPosterLoadStatusChanged") | ||
|
||
'Parent is MarkupGrid and it's parent is the ItemGrid | ||
m.topParent = m.top.GetParent().GetParent() | ||
|
||
'Get the imageDisplayMode for these grid items | ||
if m.topParent.imageDisplayMode <> invalid | ||
m.itemPoster.loadDisplayMode = m.topParent.imageDisplayMode | ||
end if | ||
|
||
end sub | ||
|
||
sub itemContentChanged() | ||
m.backdrop.blendColor = "#101010" | ||
|
||
itemData = m.top.itemContent | ||
|
||
if not isValid(itemData) then return | ||
|
||
m.itemPoster.uri = itemData.PosterUrl | ||
m.posterText.text = itemData.title | ||
|
||
'If Poster not loaded, ensure "blue box" is shown until loaded | ||
if m.itemPoster.loadStatus <> "ready" | ||
m.backdrop.visible = true | ||
m.posterText.visible = true | ||
end if | ||
end sub | ||
|
||
'Hide backdrop and text when poster loaded | ||
sub onPosterLoadStatusChanged() | ||
if m.itemPoster.loadStatus = "ready" | ||
m.backdrop.visible = false | ||
m.posterText.visible = false | ||
end if | ||
end sub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<component name="GridItemSmall" extends="Group"> | ||
<children> | ||
<Poster id="backdrop" translation="[0,15]" width="230" height="320" loadDisplayMode="scaleToZoom" uri="pkg:/images/white.9.png" /> | ||
<Poster id="itemPoster" translation="[0,15]" width="230" height="320" loadDisplayMode="scaleToZoom" /> | ||
<Poster id="itemIcon" width="50" height="50" translation="[230,10]" /> | ||
<Label id="posterText" width="230" height="320" translation="[5,5]" horizAlign="center" vertAlign="center" ellipsizeOnBoundary="true" wrap="true" /> | ||
</children> | ||
<interface> | ||
<field id="itemContent" type="node" onChange="itemContentChanged" /> | ||
<field id="itemHasFocus" type="boolean" onChange="focusChanged" /> | ||
</interface> | ||
<script type="text/brightscript" uri="GridItemSmall.brs" /> | ||
<script type="text/brightscript" uri="pkg:/source/utils/misc.brs" /> | ||
<script type="text/brightscript" uri="pkg:/source/utils/config.brs" /> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.