Variables Question
#1
im trying to add audio codec info to videoplayer info screen

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
Reply


Messages In This Thread
Variables Question - by spl147 - 2019-06-13, 17:02
RE: Variables Question - by spl147 - 2019-06-13, 20:27
Logout Mark Read Team Forum Stats Members Help
Variables Question0