Kodi Community Forum
Flag flac in mkv - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Skin Archive (https://forum.kodi.tv/forumdisplay.php?fid=179)
+----- Forum: Transparency! (https://forum.kodi.tv/forumdisplay.php?fid=115)
+----- Thread: Flag flac in mkv (/showthread.php?tid=56663)



Flag flac in mkv - r1ctus - 2009-08-21

I have a lot of mkv files with dual audio: one flac and one ac-3 or dts, and I'd like XBMC to display the 'Flac' flag if a flac track is listed in the nfo. I use Native flagging, so I edited the 'Includes_MovieMediaFlags.xml', and added this:
Code:
<control type="image">
  <include>MovieMediaflagsVars</include>
  <texture>special://skin/images/flags/movies/audiocodec/flac.png</texture>
  <visible>substring(listitem.AudioCodec,flac)</visible>
  </control>
after this line:
Code:
<!--  Audio Codec (Native)   -->
Now the Flac flag is displayed, but only when flac is the only audio codec listed in the .nfo, if an ac3 audiotrack is present, XBMC displays the DD5.1 flag. how can i make Flac to be "higher piority" then ac3?


- ronie - 2009-08-21

r1ctus Wrote:I have a lot of mkv files with dual audio: one flac and one ac-3 or dts, and I'd like XBMC to display the 'Flac' flag if a flac track is listed in the nfo. I use Native flagging, so I edited the 'Includes_MovieMediaFlags.xml', and added this:
Code:
<control type="image">
  <include>MovieMediaflagsVars</include>
  <texture>special://skin/images/flags/movies/audiocodec/flac.png</texture>
  <visible>substring(listitem.AudioCodec,flac)</visible>
  </control>
after this line:
Code:
<!--  Audio Codec (Native)   -->
Now the Flac flag is displayed, but only when flac is the only audio codec listed in the .nfo, if an ac3 audiotrack is present, XBMC displays the DD5.1 flag. how can i make Flac to be "higher piority" then ac3?

you can't.
xbmc indeed uses a priority system when multiple audio streams are available.
the stream with the most audiochannels will take preference over all other streams.
some more info: http://forum.xbmc.org/showpost.php?p=347704&postcount=342


- r1ctus - 2009-08-21

ronie Wrote:you can't.
xbmc indeed uses a priority system when multiple audio streams are available.
the stream with the most audiochannels will take preference over all other streams.
some more info: http://forum.xbmc.org/showpost.php?p=347704&postcount=342

thanks for the info! i hope the priority will be soon editable, until then i'll just write one channel less for the ac3 track in the nfo.