Diff of /skin.aeon.nox/720p/Includes_MediaFlags.xml [b9ee97] .. [0c7098] Maximize Restore

  Switch to side-by-side view

--- a/skin.aeon.nox/720p/Includes_MediaFlags.xml
+++ b/skin.aeon.nox/720p/Includes_MediaFlags.xml
@@ -420,34 +420,34 @@
     <control type="image">
       <include>AudioFlagsVars</include>
       <texture>$INFO[ListItem.AudioCodec,flags/audio/,.png]</texture>
-      <visible>!substring(ListItem.AudioCodec,ac3)</visible>
+      <visible>!substring(ListItem.AudioCodec,ac3,left)</visible>
     </control>
     <control type="image">
       <include>AudioFlagsVars</include>
       <texture>flags/audio/dolbydigital.png</texture>
-      <visible>substring(ListItem.AudioCodec,ac3)+!substring(ListItem.AudioChannels,2)</visible>
+      <visible>substring(ListItem.AudioCodec,ac3,left)+!substring(ListItem.AudioChannels,2)</visible>
     </control>
     <control type="image">
       <include>AudioFlagsVars</include>
       <texture>flags/audio/dolbypro.png</texture>
-      <visible>substring(ListItem.AudioCodec,ac3)+substring(ListItem.AudioChannels,2)</visible>
+      <visible>substring(ListItem.AudioCodec,ac3,left)+substring(ListItem.AudioChannels,2)</visible>
     </control>
   </include>
   <include name="LowListAudioFlags">
     <control type="image">
       <include>OSDAudioFlagsVars</include>
       <texture>$INFO[ListItem.AudioCodec,flags/audio/,.png]</texture>
-      <visible>!substring(ListItem.AudioCodec,ac3)</visible>
+      <visible>!substring(ListItem.AudioCodec,ac3,left)</visible>
     </control>
     <control type="image">
       <include>OSDAudioFlagsVars</include>
       <texture>flags/audio/dolbydigital.png</texture>
-      <visible>substring(ListItem.AudioCodec,ac3)+!substring(ListItem.AudioChannels,2)</visible>
+      <visible>substring(ListItem.AudioCodec,ac3,left)+!substring(ListItem.AudioChannels,2)</visible>
     </control>
     <control type="image">
       <include>OSDAudioFlagsVars</include>
       <texture>flags/audio/dolbypro.png</texture>
-      <visible>substring(ListItem.AudioCodec,ac3)+substring(ListItem.AudioChannels,2)</visible>
+      <visible>substring(ListItem.AudioCodec,ac3,left)+substring(ListItem.AudioChannels,2)</visible>
     </control>
   </include>
   <include name="FloorRatingVars">
@@ -491,7 +491,7 @@
         <posy>658</posy>
         <include>AudioFlagsVars</include>
         <texture fallback="flags/studios/default-studio.png">$INFO[Control.GetLabel(900009)]</texture>
-        <visible>!IsEmpty(ListItem.Studio)+[!Skin.HasSetting(nostudioratingflags)|Control.IsVisible(512)|Control.IsVisible(514)]+!Container.Content(tvshows)+!SubString(Container.FolderPath,plugin.video)+!Container.Content(seasons)</visible>
+        <visible>!IsEmpty(ListItem.Studio)+[!Skin.HasSetting(nostudioratingflags)|Control.IsVisible(512)|Control.IsVisible(514)]+!Container.Content(tvshows)+!SubString(Container.FolderPath,plugin.video)+[!Container.Content(seasons)|IsEmpty(ListItem.TVShowTitle)]</visible>
       </control>
       <control type="group">
         <visible>![Control.IsVisible(503)+!Skin.HasSetting(showcaseinfoontv)+[Container.Content(tvshows)|Container.Content(episodes)]+Skin.HasSetting(landscapelogo)]</visible>
@@ -500,13 +500,13 @@
           <posy>658</posy>
           <include>AudioFlagsVars</include>
           <texture fallback="flags/studios/default-studio.png">$INFO[ListItem.Studio,flags/studios/,.png]</texture>
-          <visible>!IsEmpty(ListItem.Studio)+[Container.Content(tvshows)|Container.Content(seasons)]</visible>
+          <visible>!IsEmpty(ListItem.Studio)+[Container.Content(tvshows)|[Container.Content(seasons)+!IsEmpty(ListItem.TVShowTitle)]]</visible>
         </control>
         <control type="group">
           <description>Rating Flags</description>
           <posx>1110</posx>
           <posy>658</posy>
-          <visible>Container.Content(tvshows)|Container.Content(seasons)</visible>
+          <visible>Container.Content(tvshows)|[Container.Content(seasons)+!IsEmpty(ListItem.TVShowTitle)]</visible>
           <include>FloorRatingFlagsTV</include>
         </control>
       </control>
@@ -517,13 +517,13 @@
           <posy>658</posy>
           <include>OSDAudioFlagsVars</include>
           <texture fallback="flags/studios/default-studio.png">$INFO[ListItem.Studio,flags/studios/,.png]</texture>
-          <visible>!IsEmpty(ListItem.Studio)+[Container.Content(tvshows)|Container.Content(seasons)]</visible>
+          <visible>!IsEmpty(ListItem.Studio)+[Container.Content(tvshows)|[Container.Content(seasons)+!IsEmpty(ListItem.TVShowTitle)]]</visible>
         </control>
         <control type="group">
           <description>Rating Flags</description>
           <posx>1110</posx>
           <posy>658</posy>
-          <visible>Container.Content(tvshows)|Container.Content(seasons)</visible>
+          <visible>Container.Content(tvshows)|[Container.Content(seasons)+!IsEmpty(ListItem.TVShowTitle)]</visible>
           <include>LowListRatingFlagsTV</include>
         </control>
       </control>
@@ -531,7 +531,7 @@
         <description>Rating Flags</description>
         <posx>210</posx>
         <posy>658</posy>
-        <visible>[!Skin.HasSetting(nostudioratingflags)|Control.IsVisible(512)|Control.IsVisible(514)]+!Container.Content(tvshows)+!SubString(Container.FolderPath,plugin.video)+!Container.Content(seasons)+!Control.IsVisible(516)</visible>
+        <visible>[!Skin.HasSetting(nostudioratingflags)|Control.IsVisible(512)|Control.IsVisible(514)]+!Container.Content(tvshows)+!SubString(Container.FolderPath,plugin.video)+[!Container.Content(seasons)|IsEmpty(ListItem.TVShowTitle)]+!Control.IsVisible(516)</visible>
         <include>FloorRatingFlags</include>
       </control>
       <control type="image">
@@ -588,14 +588,14 @@
         <animation effect="slide" start="0" end="61" reversible="true" condition="Control.IsVisible(512)|Control.IsVisible(514)">Conditional</animation>
         <animation effect="slide" start="0" end="700" reversible="true" condition="Control.IsVisible(516)">Conditional</animation>
         <animation effect="slide" start="0" end="1070" reversible="true" condition="Control.IsVisible(517)">Conditional</animation>
-        <visible>!IsEmpty(ListItem.Studio)+[!Skin.HasSetting(nostudioratingflags)|Control.IsVisible(512)|Control.IsVisible(514)]+!Container.Content(tvshows)+!SubString(Container.FolderPath,plugin.video)+!Container.Content(seasons)</visible>
+        <visible>!IsEmpty(ListItem.Studio)+[!Skin.HasSetting(nostudioratingflags)|Control.IsVisible(512)|Control.IsVisible(514)]+!Container.Content(tvshows)+!SubString(Container.FolderPath,plugin.video)+[!Container.Content(seasons)|IsEmpty(ListItem.TVShowTitle)]</visible>
       </control>
       <control type="image">
         <posx>80</posx>
         <posy>658</posy>
         <include>OSDAudioFlagsVars</include>
         <texture fallback="flags/studios/default-studio.png">$INFO[ListItem.Studio,flags/studios/,.png]</texture>
-        <visible>!IsEmpty(ListItem.Studio)+[Container.Content(tvshows)|Container.Content(seasons)]</visible>
+        <visible>!IsEmpty(ListItem.Studio)+[Container.Content(tvshows)|[Container.Content(seasons)+!IsEmpty(ListItem.TVShowTitle)]]</visible>
         <animation effect="slide" start="0" end="-32" reversible="true" condition="Control.IsVisible(512)|Control.IsVisible(514)">Conditional</animation>
         <animation effect="slide" start="0" end="830" reversible="true" condition="Control.IsVisible(516)">Conditional</animation>
       </control>
@@ -603,7 +603,7 @@
         <description>Rating Flags</description>
         <posx>1110</posx>
         <posy>658</posy>
-        <visible>Container.Content(tvshows)|Container.Content(seasons)</visible>
+        <visible>Container.Content(tvshows)|[Container.Content(seasons)+!IsEmpty(ListItem.TVShowTitle)]</visible>
         <animation effect="slide" start="0" end="-100" reversible="true" condition="Control.IsVisible(516)">Conditional</animation>
         <animation effect="slide" start="0" end="-939" reversible="true" condition="Control.IsVisible(512)|Control.IsVisible(514)">Conditional</animation>
         <include>LowListRatingFlagsTV</include>
@@ -614,7 +614,7 @@
         <posy>658</posy>
         <animation effect="slide" start="0" end="87" reversible="true" condition="Control.IsVisible(512)|Control.IsVisible(514)">Conditional</animation>
         <animation effect="slide" start="0" end="200" reversible="true" condition="Control.IsVisible(517)">Conditional</animation>
-        <visible>[!Skin.HasSetting(nostudioratingflags)|Control.IsVisible(512)|Control.IsVisible(514)]+!Container.Content(tvshows)+!SubString(Container.FolderPath,plugin.video)+!Container.Content(seasons)+!Control.IsVisible(516)</visible>
+        <visible>[!Skin.HasSetting(nostudioratingflags)|Control.IsVisible(512)|Control.IsVisible(514)]+!Container.Content(tvshows)+!SubString(Container.FolderPath,plugin.video)+[!Container.Content(seasons)|IsEmpty(ListItem.TVShowTitle)]+!Control.IsVisible(516)</visible>
         <include>LowListRatingFlags</include>
       </control>
       <control type="image">
@@ -758,107 +758,97 @@
       <control type="group">
         <control type="image" id="5094">
           <include>MusicCodecFlagsVars</include>
-          <texture>flags/music/audiocodec/AAC.png</texture>
+          <texture>flags/audio/aac.png</texture>
           <visible>substring(ListItem.filename,.aac)</visible>
         </control>
         <control type="image" id="5094">
           <include>MusicCodecFlagsVars</include>
-          <texture>flags/music/audiocodec/AC3.png</texture>
+          <texture>flags/audio/ac3.png</texture>
           <visible>substring(ListItem.filename,.ac3)</visible>
         </control>
         <control type="image" id="5094">
           <include>MusicCodecFlagsVars</include>
-          <texture>flags/music/audiocodec/AIF.png</texture>
+          <texture>flags/audio/aif.png</texture>
           <visible>substring(ListItem.filename,.aif) + ![substring(ListItem.filename,.aifc)  | substring(ListItem.filename,.aiff) ]</visible>
         </control>
         <control type="image" id="5094">
           <include>MusicCodecFlagsVars</include>
-          <texture>flags/music/audiocodec/AIFC.png</texture>
+          <texture>flags/audio/aifc.png</texture>
           <visible>substring(ListItem.filename,.aifc)</visible>
         </control>
         <control type="image" id="5094">
           <include>MusicCodecFlagsVars</include>
-          <texture>flags/music/audiocodec/AIFF.png</texture>
+          <texture>flags/audio/aiff.png</texture>
           <visible>substring(ListItem.filename,.aiff)</visible>
         </control>
         <control type="image" id="5094">
           <include>MusicCodecFlagsVars</include>
-          <texture>flags/music/audiocodec/AVS.png</texture>
-          <visible>substring(ListItem.filename,.avs)</visible>
-        </control>
-        <control type="image" id="5094">
-          <include>MusicCodecFlagsVars</include>
-          <texture>flags/music/audiocodec/APE.png</texture>
+          <texture>flags/audio/ape.png</texture>
           <visible>substring(ListItem.filename,.ape)</visible>
         </control>
         <control type="image" id="5094">
           <include>MusicCodecFlagsVars</include>
-          <texture>flags/music/audiocodec/CDDA.png</texture>
+          <texture>flags/audio/cdda.png</texture>
           <visible>substring(ListItem.filename,.cdda)</visible>
         </control>
         <control type="image" id="5094">
           <include>MusicCodecFlagsVars</include>
-          <texture>flags/music/audiocodec/DTS.png</texture>
+          <texture>flags/audio/dts.png</texture>
           <visible>substring(ListItem.filename,.dts)</visible>
         </control>
         <control type="image" id="5094">
           <include>MusicCodecFlagsVars</include>
-          <texture>flags/music/audiocodec/FLAC.png</texture>
+          <texture>flags/audio/flac.png</texture>
           <visible>substring(ListItem.filename,.flac)</visible>
         </control>
         <control type="image" id="5094">
           <include>MusicCodecFlagsVars</include>
-          <texture>flags/music/audiocodec/M4A.png</texture>
+          <texture>flags/audio/m4a.png</texture>
           <visible>substring(ListItem.filename,.m4a)</visible>
         </control>
         <control type="image" id="5094">
           <include>MusicCodecFlagsVars</include>
-          <texture>flags/music/audiocodec/MLP.png</texture>
+          <texture>flags/audio/mlp.png</texture>
           <visible>substring(ListItem.filename,.mlp)</visible>
         </control>
         <control type="image" id="5094">
           <include>MusicCodecFlagsVars</include>
-          <texture>flags/music/audiocodec/MP2.png</texture>
+          <texture>flags/audio/mp2.png</texture>
           <visible>substring(ListItem.filename,.mp2)</visible>
         </control>
         <control type="image" id="5094">
           <include>MusicCodecFlagsVars</include>
-          <texture>flags/music/audiocodec/MP3.png</texture>
+          <texture>flags/audio/mp3.png</texture>
           <visible>substring(ListItem.filename,.mp3)</visible>
         </control>
         <control type="image" id="5094">
           <include>MusicCodecFlagsVars</include>
-          <texture>flags/music/audiocodec/MPC.png</texture>
+          <texture>flags/audio/mpc.png</texture>
           <visible>substring(ListItem.filename,.mpc)</visible>
         </control>
         <control type="image" id="5094">
           <include>MusicCodecFlagsVars</include>
-          <texture>flags/music/audiocodec/OGG.png</texture>
+          <texture>flags/audio/vorbis.png</texture>
           <visible>substring(ListItem.filename,.ogg)</visible>
         </control>
         <control type="image" id="5094">
           <include>MusicCodecFlagsVars</include>
-          <texture>flags/music/audiocodec/RA.png</texture>
+          <texture>flags/audio/RA.png</texture>
           <visible>substring(ListItem.filename,.ra)</visible>
         </control>
         <control type="image" id="5094">
           <include>MusicCodecFlagsVars</include>
-          <texture>flags/music/audiocodec/SHN.png</texture>
-          <visible>substring(ListItem.filename,.shn)</visible>
-        </control>
-        <control type="image" id="5094">
-          <include>MusicCodecFlagsVars</include>
-          <texture>flags/music/audiocodec/WAV.png</texture>
+          <texture>flags/audio/wav.png</texture>
           <visible>substring(ListItem.filename,.wav)</visible>
         </control>
         <control type="image" id="5094">
           <include>MusicCodecFlagsVars</include>
-          <texture>flags/music/audiocodec/WMA.png</texture>
+          <texture>flags/audio/wma.png</texture>
           <visible>substring(ListItem.filename,.wma)</visible>
         </control>
         <control type="image" id="5094">
           <include>MusicCodecFlagsVars</include>
-          <texture>flags/music/audiocodec/WV.png</texture>
+          <texture>flags/audio/wavpack.png</texture>
           <visible>substring(ListItem.filename,.wv)</visible>
         </control>
       </control>
@@ -1231,7 +1221,7 @@
         <posx>1190</posx>
         <include>AudioFlagsVars</include>
         <texture>flags/posters/imdb.png</texture>
-        <visible>!Container.Content(seasons)</visible>
+        <visible>[!Container.Content(seasons)|IsEmpty(ListItem.TVShowTitle)]</visible>
       </control>
       <control type="label">
         <posx>1194</posx>
@@ -1243,7 +1233,7 @@
         <font>Font_Bold24</font>
         <textcolor>floor</textcolor>
         <label fallback="?">$INFO[ListItem.Rating]</label>
-        <visible>!Container.Content(seasons)</visible>
+        <visible>[!Container.Content(seasons)|IsEmpty(ListItem.TVShowTitle)]</visible>
       </control>
       <control type="group">
         <posx>980</posx>
@@ -1310,7 +1300,7 @@
         <font>Font_Bold24</font>
         <textcolor>floor</textcolor>
         <label>$INFO[ListItem.Label]$INFO[ListItem.Property(WatchedEpisodes), (,/]$INFO[ListItem.Property(TotalEpisodes),,)]</label>
-        <visible>Container.Content(seasons)</visible>
+        <visible>[Container.Content(seasons)+!IsEmpty(ListItem.TVShowTitle)]</visible>
       </control>
     </control>
   </include>