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

my variables for this are:

    <!-- 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
#2
(2019-06-13, 17:02)spl147 Wrote: im trying to add audio codec info to videoplayer info screen

my variables for this are:

    <!-- 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

i Actually figured it out:

    <variable name="VideoPlayerAudioCodec">
        <value condition="String.IsEqual(VideoPlayer.AudioCodec,aac) | String.IsEqual(VideoPlayer.AudioCodec,aac_latm)">AAC</value>
        <value condition="String.IsEqual(VideoPlayer.AudioCodec,ac3)">Dolby Digital</value>
        <value condition="String.IsEqual(VideoPlayer.AudioCodec,aif) | String.IsEqual(VideoPlayer.AudioCodec,aiff)">AIFF</value>
        <value condition="String.IsEqual(VideoPlayer.AudioCodec,alac)">Apple</value>
        <value condition="String.IsEqual(VideoPlayer.AudioCodec,cdda)">Audio-CD</value>
        <value condition="String.IsEqual(VideoPlayer.AudioCodec,dca) | String.IsEqual(VideoPlayer.AudioCodec,dts)">DTS</value>
        <value condition="String.IsEqual(VideoPlayer.AudioCodec,dolbydigital)">Dolby Digital</value>
        <value condition="String.StartsWith(VideoPlayer.AudioCodec,dsd)">DSD</value>
        <value condition="[String.Contains(Player.Filenameandpath,_DTS-X.) + String.IsEqual(VideoPlayer.AudioCodec,dtshd_hra)]">DTS-X (DTS-HD HRA)</value>
        <value condition="String.IsEqual(VideoPlayer.AudioCodec,dtshd_hra)">DTS-HD HRA</value>
        <value condition="[String.Contains(Player.Filenameandpath,_DTS-X.) + String.IsEqual(VideoPlayer.AudioCodec,dtshd_ma)]">DTS-X (DTS-HD MA)</value>
        <value condition="String.IsEqual(VideoPlayer.AudioCodec,dtshd_ma) | String.IsEqual(VideoPlayer.AudioCodec,dtsma)">DTS-HD MA</value>
        <value condition="String.IsEqual(VideoPlayer.AudioCodec,eac3)">Dolby Digital+</value>
        <value condition="String.IsEqual(VideoPlayer.AudioCodec,mp3float)">MP3</value>
        <value condition="String.IsEqual(VideoPlayer.AudioCodec,opus)">Opus</value>
        <value condition="String.IsEqual(VideoPlayer.AudioCodec,pcm) | String.IsEqual(VideoPlayer.AudioCodec,pcm_bluray) | String.IsEqual(VideoPlayer.AudioCodec,pcm_s16le) | String.IsEqual(VideoPlayer.AudioCodec,pcm_s24le)">PCM</value>
        <value condition="[String.Contains(Player.Filenameandpath,_Atmos.) + String.IsEqual(VideoPlayer.AudioCodec,truehd)]">Dolby Atmos (Dolby TrueHD)</value>
        <value condition="String.IsEqual(VideoPlayer.AudioCodec,truehd)">Dolby TrueHD</value>
        <value condition="String.IsEqual(VideoPlayer.AudioCodec,vorbis)">Vorbis</value>
        <value condition="String.IsEqual(VideoPlayer.AudioCodec,wavpack)">WAVP</value>
        <value condition="String.IsEqual(VideoPlayer.AudioCodec,wma) | String.IsEqual(VideoPlayer.AudioCodec,wmapro) | String.IsEqual(VideoPlayer.AudioCodec,wmav2)">WMA</value>
        <value>$INFO[VideoPlayer.AudioCodec]</value>
    </variable>
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Variables Question00