Use best image, but fallback to secondary if it's empty

This commit is contained in:
Neil Burrows 2020-11-16 09:14:24 +00:00
parent 62985305d5
commit 9afe8d88fa

View File

@ -85,7 +85,8 @@ sub itemContentChanged()
if itemData.type = "Movie" then
m.itemText.text = itemData.name
if imageWidth = 180
' Use best image, but fallback to secondary if it's empty
if (imageWidth = 180 and itemData.posterURL <> "") or itemData.thumbnailURL = ""
itemPoster.uri = itemData.posterURL
else
itemPoster.uri = itemData.thumbnailURL