Posts: 3,919
Joined: Jul 2010
Reputation:
154
BigNoid
Team-Kodi Member
Posts: 3,919
This is mainly for VideoPlayer.Cover. Currently there's no way I know of to hide VideoPlayer.Cover if it has no thumb. It always falls back to defaultvideo.png. Maybe add a visibility condition for images Control.HasThumb can solve this?
Posts: 2,441
Joined: Apr 2009
Reputation:
73
`Black
Team-Kodi Member
Posts: 2,441
Try substring(Control.GetLabel,defaultvideo.png).
Posts: 3,919
Joined: Jul 2010
Reputation:
154
BigNoid
Team-Kodi Member
Posts: 3,919
Nope, doesn't work because videoplayer.cover doesn't return anything when put in a label control.
Posts: 2,441
Joined: Apr 2009
Reputation:
73
`Black
Team-Kodi Member
Posts: 2,441
You can do Control.GetLabel on an image control and it returns the image path most of the time... should work also for videoplayer.cover.
Posts: 3,919
Joined: Jul 2010
Reputation:
154
BigNoid
Team-Kodi Member
Posts: 3,919
thx, making it an image did the trick!