mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2025-02-24 08:51:23 +00:00
Merge pull request #315 from cewert/issue313
Hide the star icon when community rating is invalid
This commit is contained in:
commit
704ee3abe2
@ -31,9 +31,15 @@ sub itemContentChanged()
|
||||
m.top.overhangTitle = itemData.name
|
||||
setFieldText("releaseYear", itemData.productionYear)
|
||||
setFieldText("officialRating", itemData.officialRating)
|
||||
setFieldText("communityRating", itemData.communityRating)
|
||||
setFieldText("overview", itemData.overview)
|
||||
|
||||
if itemData.communityRating <> invalid then
|
||||
setFieldText("communityRating", itemData.communityRating)
|
||||
else
|
||||
' hide the star icon
|
||||
m.top.findNode("communityRatingGroup").visible = false
|
||||
end if
|
||||
|
||||
if itemData.CriticRating <> invalid then
|
||||
setFieldText("criticRatingLabel" , itemData.criticRating)
|
||||
if itemData.CriticRating > 60 then
|
||||
|
@ -10,7 +10,7 @@
|
||||
<Label id="releaseYear" />
|
||||
<Label id="runtime" />
|
||||
<Label id="officialRating" />
|
||||
<LayoutGroup layoutDirection="horiz" itemSpacings="[-5]">
|
||||
<LayoutGroup id="communityRatingGroup" layoutDirection="horiz" itemSpacings="[-5]">
|
||||
<Poster id="star" uri="pkg:/images/sharp_star_white_18dp.png" height="32" width="32" blendColor="#cb272a" />
|
||||
<Label id="communityRating" />
|
||||
</LayoutGroup>
|
||||
|
Loading…
x
Reference in New Issue
Block a user