2019-06-13, 17:02
im trying to add audio codec info to videoplayer info screen
my variables for this are:
the issue is whether i play a file that has _Atmos. in the file name or not, only Dolby TrueHD is displayed, if i comment out the VideoPlayerAudioCodec variable then a movie with _Atmos. and a Dolby TrueHD movie displays truehd
my variables for this are:
xml:<!-- Audio Codec labels -->
<variable name="3DAudio">
<value condition="[String.Contains(Player.Filenameandpath,_Atmos.) + String.IsEqual(VideoPlayer.AudioCodec,truehd)]">Dolby Atmos (Dolby TrueHD $VAR[VideoPlayerAudioChannels])</value>
<value>$VAR[VideoPlayerAudioCodec]$VAR[VideoPlayerAudioChannels, ,]</value>
</variable>
<variable name="VideoPlayerAudioCodec">
<value condition="String.IsEqual(VideoPlayer.AudioCodec,truehd)">Dolby TrueHD</value>
<value>$INFO[VideoPlayer.AudioCodec]</value>
</variable>
the issue is whether i play a file that has _Atmos. in the file name or not, only Dolby TrueHD is displayed, if i comment out the VideoPlayerAudioCodec variable then a movie with _Atmos. and a Dolby TrueHD movie displays truehd