INTERACT FORUM

More => Old Versions => JRiver Media Center 31 for Windows => Topic started by: Purecut on July 15, 2023, 06:37:53 am

Title: File Info
Post by: Purecut on July 15, 2023, 06:37:53 am
Hi everybody,

I have a problem showing a icon in the info panel if a movie contains "Dolby Vision".
Therefore I have a field "Dolby Vision" that will be filled like this:

Code: [Select]
ListContains([HDR Format],DolbyVision)
This will work. If the HDR Fomrat field contains "DolbyVision" the field Dolby Vision shows "1" or "0".

When I use this information in the Tooltip field like this:
Code: [Select]
If(isEqual([Dolby Vision],1,8),<img src="tooltip:\Video\dolby-vision" height="25">,)
Nothing will be displayed.
What am I doing wrong?




Title: Re: File Info
Post by: lepa on July 15, 2023, 07:43:30 am
Try removing \ before video. I think it is not needed if you use tooltip:
Code: [Select]
If(isEqual([Dolby Vision],1,8),<img src="tooltip:Video\dolby-vision" height="25">,)
Using isEqual is perfectly fine but if you like and as [Dolby Vision] is empty vs 1 field you can also just check against raw value [Dolby Vision,0] meaning if there is a value in [Dolby Vision] then If return true i.e 1

Code: [Select]
If([Dolby Vision,0],<img src="tooltip:Video\dolby-vision" height="25">,)
or user isEmpty negative check
Code: [Select]
If(IsEmpty([Dolby Vision]),,<img src="tooltip:Video\dolby-vision" height="25">)
Title: Re: File Info
Post by: Purecut on July 15, 2023, 09:53:12 am
Thanks  -  working :-)