2018-02-05, 04:34
(2017-11-21, 21:57)mikeSiLVO Wrote: You need to add 2 new VARsThank you! Spot on. Is it possible for me to modify the associated files before installation of the skin? My Nvidia Shield and LibreELEC Intel NUC devices have Atmos setups, and though my Apple TV 4K isn't capable of putting out these formats anyway, I am a bit obsessive about keeping my interfaces in sync. I am using the latest (1/30/18) Apple TV build of Kodi 17.6 - but unlike my Shield and LibreELEC, I cannot access the Apple TV's filesystem for post-install edits.
Then search and replace all instances of $INFO[ListItem.AudioCodec to $VAR[AudioFlagVar and $INFO[VideoPlayer.AudioCodec to $VAR[PlayerAudioFlagVar.Code:<variable name="AudioFlagVar">
<value condition="String.Contains(ListItem.Filename,atmos)">atmos</value>
<value condition="String.Contains(ListItem.Filename,dts-x)">dts-x</value>
<value condition="String.Contains(ListItem.Filename,dtsx)">dts-x</value>
<value>$INFO[ListItem.AudioCodec]</value>
</variable>
<variable name="PlayerAudioFlagVar">
<value condition="String.Contains(Player.Filenameandpath,atmos)">atmos</value>
<value condition="String.Contains(Player.Filenameandpath,dts-x)">dtsx</value>
<value condition="String.Contains(Player.Filenameandpath,dtsx)">dtsx</value>
<value>$INFO[VideoPlayer.AudioCodec]</value>
</variable>
Then add your flag images to the skins media/flags/colored if using colored flags or default if using default flags folder and name them atmos.png and dtsx.png. After that you need to add either atmos, dts-x, or dtsx to the filename and rescrape if not already in the filename.
Think that should do it...
The installation keeps failing when I try to install a pre-modified / re-zipped copy of the skin on my Apple TV. (It works fine otherwise - and the same failure occurs on my other systems if I modify files and re-zip.) I've impacted ONLY the items listed here prior to re-zip/attempted install. Something in Kodi must not like that I'm unzipping, modifying files and re-zipping the skin installation file. I am changing nothing at all with the directory structure or filename.
.../16x9/DialogFullScreenInfo.xml
.../16x9/DialogVideoInfo.xml
.../16x9/Includes_LiveTV.xml
.../16x9/MyVideoNav.xml
.../16x9/Variables.xml
.../16x9/View_50_List.xml
.../16x9/View_501_LowList.xml
.../16x9/View_602_FanartList.xml
.../media/flags/colored/audiocodec/atmos.png
.../media/flags/colored/audiocodec/dtsx.png
.../media/flags/default/audiocodec/atmos.png
.../media/flags/default/audiocodec/dtsx.png