Skip to content

Commit 9a1e553

Browse files
committed
Update code docs
1 parent 81a0ba9 commit 9a1e553

1 file changed

Lines changed: 9 additions & 19 deletions

File tree

docs/components_data_HomeData.bs.html

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
m.top.CollectionType = datum.CollectionType
2121
end if
2222

23+
if isValid(datum.UserData) and isValid(datum.UserData.Played)
24+
m.top.isWatched = datum.UserData.Played
25+
end if
26+
2327
' Set appropriate Images for Wide and Tall based on type
2428

2529
if LCase(datum.type) = "collectionfolder" or LCase(datum.type) = "userview"
@@ -40,11 +44,8 @@
4044
end if
4145

4246
else if datum.type = "Episode" or LCase(datum.type) = "recording" or datum.type = "MusicVideo"
43-
m.top.isWatched = datum.UserData.Played
44-
45-
imgParams = {}
46-
imgParams.Append({ "maxHeight": 261 })
47-
imgParams.Append({ "maxWidth": 464 })
47+
' Add Tall Poster (Episode Thumbnail)
48+
imgParams = { "maxHeight": 261, "maxWidth": 464 }
4849

4950
if isValid(datum.ImageTags) and isValidAndNotEmpty(datum.ImageTags.Primary)
5051
param = { "Tag": datum.ImageTags.Primary }
@@ -69,9 +70,7 @@
6970
end if
7071

7172
else if datum.type = "Series"
72-
m.top.isWatched = datum.UserData.Played
73-
imgParams = { "maxHeight": 261 }
74-
imgParams.Append({ "maxWidth": 464 })
73+
imgParams = { "maxHeight": 261, "maxWidth": 464 }
7574

7675
if isValid(datum.ImageTags) and isValidAndNotEmpty(datum.ImageTags.Primary)
7776
imgParams["Tag"] = datum.ImageTags.Primary
@@ -92,11 +91,7 @@
9291
end if
9392

9493
else if datum.type = "Movie"
95-
m.top.isWatched = datum.UserData.Played
96-
97-
imgParams = {}
98-
imgParams.Append({ "maxHeight": 261 })
99-
imgParams.Append({ "maxWidth": 175 })
94+
imgParams = { "maxHeight": 261, "maxWidth": 175 }
10095

10196
if isValid(datum.ImageTags) and isValidAndNotEmpty(datum.ImageTags.Primary)
10297
param = { "Tag": datum.ImageTags.Primary }
@@ -119,12 +114,7 @@
119114
m.top.thumbnailUrl = ""
120115
end if
121116
else if datum.type = "Video"
122-
m.top.isWatched = datum.UserData.Played
123-
124-
imgParams = {
125-
"maxHeight": 261,
126-
"maxWidth": 464
127-
}
117+
imgParams = { "maxHeight": 261, "maxWidth": 464 }
128118

129119
if isValid(datum.ImageTags) and isValidAndNotEmpty(datum.ImageTags.Primary)
130120
imgParams.Append({ "Tag": datum.ImageTags.Primary })

0 commit comments

Comments
 (0)