2016-02-14, 02:02
I am working on videoplaylist. The playlist is displayed using the same viewmodes / containers as the videolibrary. But videoplaylist can contain arbitrary mix of movies, musicvideos, and episodes. So Container.Content is null. To check ListItem content type, I am using the following infolabels as proxy:
musicvideo: !IsEmpty(ListItem.Artist)
episode: !IsEmpty(ListItem.Episode)
movie: IsEmpty(ListItem.Artist) + IsEmpty(ListItem(Episode)
An alternative is to use MusicPartyMode.Enabled, which implies content is musicvideo, but that is a special case.
These are used in variable condition statements where I select the desired infolabel to display.
This seems kind of kludgy. Is there a better way to do this?
scott s.
.
musicvideo: !IsEmpty(ListItem.Artist)
episode: !IsEmpty(ListItem.Episode)
movie: IsEmpty(ListItem.Artist) + IsEmpty(ListItem(Episode)
An alternative is to use MusicPartyMode.Enabled, which implies content is musicvideo, but that is a special case.
These are used in variable condition statements where I select the desired infolabel to display.
This seems kind of kludgy. Is there a better way to do this?
scott s.
.