|
20 | 20 | m.top.CollectionType = datum.CollectionType |
21 | 21 | end if |
22 | 22 |
|
| 23 | + if isValid(datum.UserData) and isValid(datum.UserData.Played) |
| 24 | + m.top.isWatched = datum.UserData.Played |
| 25 | + end if |
| 26 | + |
23 | 27 | ' Set appropriate Images for Wide and Tall based on type |
24 | 28 |
|
25 | 29 | if LCase(datum.type) = "collectionfolder" or LCase(datum.type) = "userview" |
|
40 | 44 | end if |
41 | 45 |
|
42 | 46 | 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 } |
48 | 49 |
|
49 | 50 | if isValid(datum.ImageTags) and isValidAndNotEmpty(datum.ImageTags.Primary) |
50 | 51 | param = { "Tag": datum.ImageTags.Primary } |
|
69 | 70 | end if |
70 | 71 |
|
71 | 72 | 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 } |
75 | 74 |
|
76 | 75 | if isValid(datum.ImageTags) and isValidAndNotEmpty(datum.ImageTags.Primary) |
77 | 76 | imgParams["Tag"] = datum.ImageTags.Primary |
|
92 | 91 | end if |
93 | 92 |
|
94 | 93 | 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 } |
100 | 95 |
|
101 | 96 | if isValid(datum.ImageTags) and isValidAndNotEmpty(datum.ImageTags.Primary) |
102 | 97 | param = { "Tag": datum.ImageTags.Primary } |
|
119 | 114 | m.top.thumbnailUrl = "" |
120 | 115 | end if |
121 | 116 | 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 } |
128 | 118 |
|
129 | 119 | if isValid(datum.ImageTags) and isValidAndNotEmpty(datum.ImageTags.Primary) |
130 | 120 | imgParams.Append({ "Tag": datum.ImageTags.Primary }) |
|
0 commit comments