Add valid check to contentType

Value can be invalid for trailer libraries
This commit is contained in:
1hitsong 2023-12-02 18:30:33 -05:00
parent 551df567e7
commit 685a623607

View File

@ -529,10 +529,12 @@ sub updateLatestItems(msg)
imagesize = homeRowItemSizes.WIDE_POSTER
if LCase(node.metadata.contentType) = "movies"
imagesize = homeRowItemSizes.MOVIE_POSTER
else if LCase(node.metadata.contentType) = "music"
imagesize = homeRowItemSizes.MUSIC_ALBUM
if isValid(node.metadata.contentType)
if LCase(node.metadata.contentType) = "movies"
imagesize = homeRowItemSizes.MOVIE_POSTER
else if LCase(node.metadata.contentType) = "music"
imagesize = homeRowItemSizes.MUSIC_ALBUM
end if
end if
' remake row using new data