Restrict unplayed count on home view to Series only

This commit is contained in:
1hitsong 2022-12-14 20:08:25 -05:00
parent 31e6f01c08
commit 54975e1841

View File

@ -37,10 +37,12 @@ sub itemContentChanged()
m.itemIcon.uri = itemData.iconUrl
end if
if itemData?.json?.UserData?.UnplayedItemCount <> invalid
if itemData.json.UserData.UnplayedItemCount > 0
m.unplayedCount.visible = true
m.unplayedEpisodeCount.text = itemData.json.UserData.UnplayedItemCount
if LCase(itemData.type) = "series"
if itemData?.json?.UserData?.UnplayedItemCount <> invalid
if itemData.json.UserData.UnplayedItemCount > 0
m.unplayedCount.visible = true
m.unplayedEpisodeCount.text = itemData.json.UserData.UnplayedItemCount
end if
end if
end if