mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2025-03-04 21:17:12 +00:00
Fix to aspect ratio
This commit is contained in:
parent
fea0335d88
commit
0e1cf6c664
components/home
@ -96,8 +96,8 @@ sub itemContentChanged()
|
||||
m.itemPoster.uri = itemData.thumbnailURL
|
||||
else
|
||||
m.itemPoster.uri = ImageURL(itemData.json.ChannelId)
|
||||
m.itemPoster.loadDisplayMode = "scaleToFill"
|
||||
end if
|
||||
m.itemPoster.loadDisplayMode = "scaleToFill"
|
||||
|
||||
' Set Episode title if available
|
||||
if isValid(itemData.json.EpisodeTitle)
|
||||
|
@ -509,11 +509,15 @@ sub updateOnNowItems()
|
||||
' remake row using the new data
|
||||
row = CreateObject("roSGNode", "HomeRow")
|
||||
row.title = tr("On Now")
|
||||
itemSize = [464, 331]
|
||||
row.imageWidth = 464
|
||||
for each item in itemData
|
||||
row.usePoster = false
|
||||
if (not isValid(item.thumbnailURL) or item.thumbnailURL = "") and isValid(item.json) and isValid(item.json.imageURL)
|
||||
item.thumbnailURL = item.json.imageURL
|
||||
row.usePoster = true
|
||||
row.imageWidth = 180
|
||||
itemSize = [188, 331]
|
||||
end if
|
||||
item.usePoster = row.usePoster
|
||||
item.imageWidth = row.imageWidth
|
||||
@ -521,6 +525,7 @@ sub updateOnNowItems()
|
||||
end for
|
||||
|
||||
' replace the old row
|
||||
updateSizeArray(itemSize, m.homeSectionIndexes.livetv, "replace")
|
||||
m.top.content.replaceChild(row, m.homeSectionIndexes.livetv)
|
||||
|
||||
end if
|
||||
|
Loading…
x
Reference in New Issue
Block a user