HOW-TO:Remove media flags in Confluence: Difference between revisions
(→List) |
mNo edit summary |
||
(24 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{mininav| [[Skinning]] | [[Confluence]] }} | {{mininav| [[Skinning]] | [[Confluence]] }} | ||
This tutorial will show how to '''remove [[media flags]]''' from the video library views. This is achieved by editing [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/ | This tutorial will show how to '''remove [[media flags]]''' from the video library views, the ''OSD'', the ''Info screen'' and from ''TV/Movie information''. This is achieved by editing [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/ViewsFileMode.xml ViewsFileMode.xml], [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/ViewsVideoLibrary.xml ViewsVideoLibrary.xml], [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/VideoFullScreen.xml VideoFullScreen.xml] and [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/DialogVideoInfo.xml DialogVideoInfo.xml]. | ||
==Remove media flags from the video library views== | |||
===List=== | ===List=== | ||
<gallery widths=500px heights=280px> | <gallery widths=500px heights=280px> | ||
Line 8: | Line 9: | ||
File:listviewflagsmod.png|MOD | File:listviewflagsmod.png|MOD | ||
</gallery><br /> | </gallery><br /> | ||
A. Open the file [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/ | A. Open the file [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/ViewsFileMode.xml Views'''FileMode'''.xml]. | ||
The file starts with '''<include name="CommonRootView">''', which is the ''include'' section for the ''List'' view.<br /> | The file starts with '''<include name="CommonRootView">''', which is the ''include'' section for the ''List'' view.<br /> | ||
B. Find '''<itemlayout height="40" width="580">''' in the ''include'' section.<br /> | B. Find '''<itemlayout height="40" width="580">''' in the ''include'' section.<br /> | ||
C. Find following code in the ''itemlayout'' section and comment it out. It shows media flags (SD/HD) when the selection ''isn't'' on the row.<br /> | |||
C. Find the following code in the ''itemlayout'' section and comment it out. It shows media flags (SD/HD) when the selection ''isn't'' on the row.<br /> | |||
[[File:480.png]] [[File:1080.png]] | [[File:480.png]] [[File:1080.png]] | ||
Line 26: | Line 29: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
D. Find '''<focusedlayout height="40" width="580">''' in the ''CommonRootView include'' section.<br /> | D. Find '''<focusedlayout height="40" width="580">''' in the ''CommonRootView include'' section.<br /> | ||
E. Find following code in the ''focusedlayout'' section and comment it out. It shows media flags (SD/HD) | |||
E. Find the following code in the ''focusedlayout'' section and comment it out. It shows media flags (SD/HD) when the selection ''is'' on the row. | |||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
<control type="image"> | <control type="image"> | ||
Line 40: | Line 44: | ||
===Big list=== | ===Big list=== | ||
<gallery widths=500px heights=280px> | |||
File:Biglistorg.png|Original TV ''Big list'' | |||
File:Biglistflagsmod.png|MOD | |||
</gallery><br /> | |||
A. Open the file [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/ViewsFileMode.xml Views'''FileMode'''.xml]. | |||
Find '''<include name="FullWidthList">''', which is the ''include'' section for the ''Big list'' view.<br /> | |||
B. Find '''<itemlayout height="40" width="1080">''' in the ''include'' section.<br /> | |||
C. Find the following code in the ''itemlayout'' section and comment it out. It shows media flags (SD/HD) when the selection ''isn't'' on the row.<br /> | |||
[[File:480.png]] [[File:1080.png]] | |||
<syntaxhighlight lang="xml"> | |||
<control type="image"> | |||
<left>1010</left> | |||
<top>8</top> | |||
<width>40</width> | |||
<height>26</height> | |||
<texture>$VAR[MediaInfoOverlayVar]</texture> | |||
<aspectratio>keep</aspectratio> | |||
<visible>Window.IsVisible(Videos) + [Container.Content(Movies) | Container.Content(Sets) | Container.Content(Episodes) | Container.Content(MusicVideos)]</visible> | |||
</control> | |||
</syntaxhighlight> | |||
D. Find '''<focusedlayout height="40" width="1080">''' in the ''FullWidthList include'' section.<br /> | |||
E. Find the following code in the ''focusedlayout'' section and comment it out. It shows media flags (SD/HD) when the selection ''is'' on the row. | |||
<syntaxhighlight lang="xml"> | |||
<control type="image"> | |||
<left>1010</left> | |||
<top>8</top> | |||
<width>40</width> | |||
<height>26</height> | |||
<texture>$VAR[MediaInfoOverlayVar]</texture> | |||
<aspectratio>keep</aspectratio> | |||
<visible>Window.IsVisible(Videos) + [Container.Content(Movies) | Container.Content(Sets) | Container.Content(Episodes) | Container.Content(MusicVideos)]</visible> | |||
</control> | |||
</syntaxhighlight> | |||
===Poster wrap=== | ===Poster wrap=== | ||
<gallery widths=450px heights=250px> | |||
File:Postwraporg2.png|Original ''Poster wrap'' view | |||
File:Postwraporgflagsmod.png|MOD, media flags removed | |||
File:Posterwrapflagsandratingsmod.png|MOD, media flags and runtime removed | |||
</gallery> | |||
A. Open the file [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/ViewsVideoLibrary.xml Views'''VideoLibrary'''.xml]. The file starts with '''<include name="PosterWrapView">''' which is the ''include'' section for the ''Poster wrap'' view.<br /> | |||
B. Find the following code in the ''include'' section, it's the control section for the movie library. ''Poster wrap'' view in the TV library doesn't have media flags. | |||
<syntaxhighlight lang="xml"> | |||
<control type="group"> | |||
<visible>Control.IsVisible(501) + [Container.Content(Movies) | Container.Content(Sets)]</visible> | |||
</syntaxhighlight> | |||
C. Find the following code in the ''control'' section and comment it out. It'll remove the media flags from the movie library (the TV library don't have media flags in the ''Poster wrap'' view). | |||
<syntaxhighlight lang="xml"> | |||
<control type="grouplist"> | |||
<description>Media Codec Flagging Images</description> | |||
<left>0</left> | |||
<top>610</top> | |||
<width>1280</width> | |||
<align>center</align> | |||
<itemgap>2</itemgap> | |||
<orientation>horizontal</orientation> | |||
<include>VideoCodecFlaggingConditions</include> | |||
<include>AudioCodecFlaggingConditions</include> | |||
<include>AudioChannelsFlaggingConditions</include> | |||
<include>AspectCodecFlaggingConditions</include> | |||
<include>VideoStereoscopicsFlaggingConditions</include> | |||
<include>VideoTypeHackFlaggingConditions</include> | |||
</control> | |||
</syntaxhighlight> | |||
D. Optionally you can also remove "runtime" to get an even more cleaner look. Find the following code just above the code from step C and comment it out. | |||
<syntaxhighlight lang="xml"> | |||
<control type="label"> | |||
<left>0</left> | |||
<top>580</top> | |||
<width>1280</width> | |||
<height>20</height> | |||
<font>font13</font> | |||
<textcolor>white</textcolor> | |||
<shadowcolor>black</shadowcolor> | |||
<scroll>true</scroll> | |||
<align>center</align> | |||
<aligny>center</aligny> | |||
<label>$INFO[ListItem.Duration,$LOCALIZE[2050] , $LOCALIZE[12391]]</label> | |||
</control> | |||
</syntaxhighlight> | |||
===Fanart=== | ===Fanart=== | ||
<gallery widths=500px heights=280px> | |||
File:Fanartorg.png|Original movie ''Fanart'' view | |||
File:Fanartflagsmod.png|MOD | |||
</gallery><br /> | |||
A. Open the file [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/ViewsVideoLibrary.xml Views'''VideoLibrary'''.xml]. | |||
Find '''<include name="PosterWrapView2_Fanart">''', which is the ''include'' section for the ''Fanart'' view.<br /> | |||
B. Find the following code, it's the ''control'' section for the movie library. | |||
<syntaxhighlight lang="xml"> | |||
<control type="group"> | |||
<left>180</left> | |||
<top>40</top> | |||
<visible>Control.IsVisible(508) + ![ListItem.IsFolder + Container.Content(Movies)] + !Skin.HasSetting(View508HideInfo) + !Container.Content(Sets) | |||
</syntaxhighlight> | |||
C. Find the following code in the movie ''control'' section and comment it out. It removes media flags from the movie library. The TV ''Fanart'' view doesn't use media flags. | |||
<syntaxhighlight lang="xml"> | |||
<control type="grouplist"> | |||
<description>Media Codec Flagging Images</description> | |||
<left>30</left> | |||
<top>360</top> | |||
<width>800</width> | |||
<align>left</align> | |||
<itemgap>2</itemgap> | |||
<orientation>horizontal</orientation> | |||
<include>VideoCodecFlaggingConditions</include> | |||
<include>AudioCodecFlaggingConditions</include> | |||
<include>AudioChannelsFlaggingConditions</include> | |||
<include>AspectCodecFlaggingConditions</include> | |||
<include>VideoStereoscopicsFlaggingConditions</include> | |||
<include>VideoTypeHackFlaggingConditions</include> | |||
</control> | |||
<control type="grouplist"> | |||
<description>MPAA Rating Flagging Images</description> | |||
<left>95</left> | |||
<top>360</top> | |||
<width>800</width> | |||
<align>right</align> | |||
<itemgap>0</itemgap> | |||
<orientation>horizontal</orientation> | |||
<include>VideoMPAAFlaggingConditions</include> | |||
</control>--> | |||
</syntaxhighlight> | |||
===Media info=== | ===Media info=== | ||
<gallery widths=500px heights=280px> | |||
File:Mediainfoorg.png|Original TV ''Media info'' view | |||
File:Mediainfoflagsmod.png|MOD | |||
</gallery><br /> | |||
A. Open the file [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/ViewsVideoLibrary.xml Views'''VideoLibrary'''.xml]. | |||
Find '''<include name="MediaListView2">''' (Media info=MediaListView'''2'''), which is the ''include'' section for the ''Media info'' view.<br /> | |||
B. Find '''<itemlayout height="40" width="580">''' in the ''include'' section.<br /> | |||
C. Find the following code in the ''itemlayout'' section and comment it out. It shows media flags (SD/HD) when the selection ''isn't'' on the row.<br /> | |||
[[File:480.png]] [[File:1080.png]] | |||
<syntaxhighlight lang="xml"> | |||
<control type="image"> | |||
<left>515</left> | |||
<top>8</top> | |||
<width>40</width> | |||
<height>26</height> | |||
<texture>$VAR[MediaInfoOverlayVar]</texture> | |||
<aspectratio>keep</aspectratio> | |||
<visible>Container.Content(Movies) | Container.Content(Sets) | Container.Content(Episodes) | Container.Content(MusicVideos)</visible> | |||
</control> | |||
</syntaxhighlight> | |||
D. Find '''<focusedlayout height="40" width="580">''' in the ''MediaListView2 include'' section.<br /> | |||
E. Find the following code in the ''focusedlayout'' section and comment it out. It shows media flags (SD/HD) when the selection ''is'' on the row.<br /> | |||
<syntaxhighlight lang="xml"> | |||
<control type="image"> | |||
<left>515</left> | |||
<top>8</top> | |||
<width>40</width> | |||
<height>26</height> | |||
<texture>$VAR[MediaInfoOverlayVar]</texture> | |||
<aspectratio>keep</aspectratio> | |||
<visible>Container.Content(Movies) | Container.Content(Sets) | Container.Content(Episodes) | Container.Content(MusicVideos)</visible> | |||
</control> | |||
</syntaxhighlight> | |||
F. Find the following code, it's the ''control'' section for the movie library and TV Shows. | |||
<syntaxhighlight lang="xml"> | |||
<control type="group"> | |||
<left>710</left> | |||
<top>70</top> | |||
<visible>Control.IsVisible(504) + [Container.Content(Movies) | Container.Content(TVShows)]</visible> | |||
</syntaxhighlight> | |||
G. Find the following code in the movie ''control'' section and comment it out. It removes media flags from the movie library. | |||
<syntaxhighlight lang="xml"> | |||
<control type="grouplist"> | |||
<description>Media Codec Flagging Images</description> | |||
<left>0</left> | |||
<top>290</top> | |||
<width>510</width> | |||
<align>center</align> | |||
<itemgap>2</itemgap> | |||
<orientation>horizontal</orientation> | |||
<include>VideoCodecFlaggingConditions</include> | |||
<include>AudioCodecFlaggingConditions</include> | |||
<include>AudioChannelsFlaggingConditions</include> | |||
<include>AspectCodecFlaggingConditions</include> | |||
<include>VideoStereoscopicsFlaggingConditions</include> | |||
<include>VideoTypeHackFlaggingConditions</include> | |||
</control> | |||
</syntaxhighlight> | |||
H. Find the following code, it's the ''control'' section TV episodes. | |||
<syntaxhighlight lang="xml"> | |||
<control type="group"> | |||
<left>710</left> | |||
<top>70</top> | |||
<visible>Control.IsVisible(504) + Container.Content(Episodes)</visible> | |||
</syntaxhighlight> | |||
I. Find the following code in the TV episodes ''control'' section and comment it out. It removes media flags from TV episodes. | |||
<syntaxhighlight lang="xml"> | |||
<control type="grouplist"> | |||
<description>Media Codec Flagging Images</description> | |||
<left>0</left> | |||
<top>290</top> | |||
<width>510</width> | |||
<align>center</align> | |||
<itemgap>2</itemgap> | |||
<orientation>horizontal</orientation> | |||
<include>VideoCodecFlaggingConditions</include> | |||
<include>AudioCodecFlaggingConditions</include> | |||
<include>AudioChannelsFlaggingConditions</include> | |||
<include>AspectCodecFlaggingConditions</include> | |||
<include>VideoStereoscopicsFlaggingConditions</include> | |||
<include>VideoTypeHackFlaggingConditions</include> | |||
</control> | |||
</syntaxhighlight> | |||
===Media info 2=== | ===Media info 2=== | ||
<gallery widths=500px heights=280px> | |||
File:Mediainfo2org.png|Original TV ''Media info 2'' view | |||
File:Mediainfo2flagsmod.png|MOD | |||
</gallery><br /> | |||
A. Open the file [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/ViewsVideoLibrary.xml Views'''VideoLibrary'''.xml]. | |||
Find '''<include name="MediaListView3">''' (Media info '''2'''=MediaListView'''3'''), which is the ''include'' section for the ''Media info 2'' view.<br /> | |||
B. Find '''<itemlayout height="40" width="580">" in the ''include'' section.<br /> | |||
C. Find the following code in the ''itemlayout'' section and comment it out. It shows media flags (SD/HD) when the selection ''isn't'' on the row.<br /> | |||
[[File:480.png]] [[File:1080.png]] | |||
<syntaxhighlight lang="xml"> | |||
<control type="image"> | |||
<left>515</left> | |||
<top>8</top> | |||
<width>40</width> | |||
<height>26</height> | |||
<texture>$VAR[MediaInfoOverlayVar]</texture> | |||
<aspectratio>keep</aspectratio> | |||
<visible>Container.Content(Movies) | Container.Content(Sets) | Container.Content(Episodes) | Container.Content(MusicVideos)</visible> | |||
</control> | |||
</syntaxhighlight> | |||
D. Find '''<focusedlayout height="40" width="580">''' in the ''MediaListView3'' include'' section.<br /> | |||
E. Find the following code in the ''focusedlayout'' section and comment it out. It shows media flags (SD/HD) when the selection ''is'' on the row.<br /> | |||
<syntaxhighlight lang="xml"> | |||
<control type="image"> | |||
<left>515</left> | |||
<top>8</top> | |||
<width>40</width> | |||
<height>26</height> | |||
<texture>$VAR[MediaInfoOverlayVar]</texture> | |||
<aspectratio>keep</aspectratio> | |||
<visible>Container.Content(Movies) | Container.Content(Sets) | Container.Content(Episodes) | Container.Content(MusicVideos)</visible> | |||
</control> | |||
</syntaxhighlight> | |||
F. Find the following code, it's the ''control'' section TV episodes. | |||
<syntaxhighlight lang="xml"> | |||
<control type="group"> | |||
<left>710</left> | |||
<top>245</top> | |||
<visible>Container.Content(Episodes)</visible> | |||
</syntaxhighlight> | |||
G. Find the following code in the TV episodes ''control'' section and comment it out. It removes media flags from TV episodes. | |||
<syntaxhighlight lang="xml"> | |||
<control type="grouplist"> | |||
<description>Media Codec Flagging Images</description> | |||
<left>0</left> | |||
<top>210</top> | |||
<width>530</width> | |||
<align>center</align> | |||
<itemgap>2</itemgap> | |||
<orientation>horizontal</orientation> | |||
<include>VideoCodecFlaggingConditions</include> | |||
<include>AudioCodecFlaggingConditions</include> | |||
<include>AudioChannelsFlaggingConditions</include> | |||
<include>AspectCodecFlaggingConditions</include> | |||
<include>VideoStereoscopicsFlaggingConditions</include> | |||
<include>VideoTypeHackFlaggingConditions</include> | |||
</control> | |||
</syntaxhighlight> | |||
H. Find the following code, it's the ''control'' section for the movie library. | |||
<syntaxhighlight lang="xml"> | |||
<control type="group"> | |||
<left>710</left> | |||
<top>245</top> | |||
<visible>Container.Content(Movies)</visible> | |||
</syntaxhighlight> | |||
I. Find the following code in the movie ''control'' section and comment it out. It removes media flags from the movie library. | |||
<syntaxhighlight lang="xml"> | |||
<control type="grouplist"> | |||
<description>Media Codec Flagging Images</description> | |||
<left>0</left> | |||
<top>365</top> | |||
<width>530</width> | |||
<align>center</align> | |||
<itemgap>2</itemgap> | |||
<orientation>horizontal</orientation> | |||
<include>VideoCodecFlaggingConditions</include> | |||
<include>AudioCodecFlaggingConditions</include> | |||
<include>AudioChannelsFlaggingConditions</include> | |||
<include>AspectCodecFlaggingConditions</include> | |||
<include>VideoStereoscopicsFlaggingConditions</include> | |||
<include>VideoTypeHackFlaggingConditions</include> | |||
</control> | |||
</syntaxhighlight> | |||
===Media info 3=== | ===Media info 3=== | ||
<gallery widths=500px heights=280px> | |||
File:Mediaview3org.png|Original TV ''Media info 3'' | |||
File:Mediaview3flagsmod.png|MOD | |||
</gallery><br /> | |||
A. Open the file [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/ViewsVideoLibrary.xml Views'''VideoLibrary'''.xml]. | |||
Find '''<include name="MediaListView4">''' (Media info '''3'''=MediaListView'''4'''), which is the ''include'' section for the ''Media info 3'' view.<br /> | |||
B. Find the following code, it's the ''control'' section for the movie library | |||
<syntaxhighlight lang="xml"> | |||
<control type="group"> | |||
<left>470</left> | |||
<top>70</top> | |||
<visible>Control.IsVisible(515) + Container.Content(Movies)</visible> | |||
</syntaxhighlight> | |||
C. Find the following code in the movie ''control'' section and comment it out. It removes media flags from the movie library. | |||
<syntaxhighlight lang="xml"> | |||
<control type="grouplist"> | |||
<description>Media Codec Flagging Images</description> | |||
<left>0</left> | |||
<top>540</top> | |||
<width>540</width> | |||
<align>left</align> | |||
<itemgap>2</itemgap> | |||
<orientation>horizontal</orientation> | |||
<include>VideoCodecFlaggingConditions</include> | |||
<include>AudioCodecFlaggingConditions</include> | |||
<include>AudioChannelsFlaggingConditions</include> | |||
<include>AspectCodecFlaggingConditions</include> | |||
<include>VideoStereoscopicsFlaggingConditions</include> | |||
<include>VideoTypeHackFlaggingConditions</include> | |||
</control> | |||
</syntaxhighlight> | |||
D. Find the following code, it's the ''control'' section for TV episodes. | |||
<syntaxhighlight lang="xml"> | |||
<control type="group"> | |||
<left>470</left> | |||
<top>70</top> | |||
<visible>Control.IsVisible(515) + Container.Content(Episodes)</visible> | |||
</syntaxhighlight> | |||
E. Find the following code in the TV episodes ''control'' section and comment it out. It removes media flags for TV episodes. | |||
<syntaxhighlight lang="xml"> | |||
<control type="grouplist"> | |||
<description>Media Codec Flagging Images</description> | |||
<left>0</left> | |||
<top>540</top> | |||
<width>410</width> | |||
<align>left</align> | |||
<itemgap>2</itemgap> | |||
<orientation>horizontal</orientation> | |||
<include>VideoCodecFlaggingConditions</include> | |||
<include>AudioCodecFlaggingConditions</include> | |||
<include>AudioChannelsFlaggingConditions</include> | |||
<include>AspectCodecFlaggingConditions</include> | |||
<include>VideoStereoscopicsFlaggingConditions</include> | |||
<include>VideoTypeHackFlaggingConditions</include> | |||
</control> | |||
</syntaxhighlight> | |||
==Remove media flags from the OSD and Info screen== | |||
<gallery widths=500px heights=280px> | |||
File:Osdmediflagsmodorg.png|Original OSD | |||
File:Osdmediflagsmod.png|MOD - media flags removed | |||
File:Osdmediflagsmodincllangflags.png|MOD - audio and subtitle flags also removed | |||
</gallery><br /> | |||
A. Open the file [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/VideoFullScreen.xml VideoFullScreen.xml]. | |||
B. Find the following code and comment it out. This will remove all media flags. | |||
<syntaxhighlight lang="xml"> | |||
<control type="image" id="1"> | |||
<description>Video Resolution Image</description> | |||
<width>50</width> | |||
<height>35</height> | |||
<aspectratio align="center">keep</aspectratio> | |||
<texture>$INFO[VideoPlayer.VideoResolution,flagging/video/,.png]</texture> | |||
</control> | |||
<control type="image" id="1"> | |||
<description>Audio Codec Image</description> | |||
<width>85</width> | |||
<height>35</height> | |||
<aspectratio align="center">keep</aspectratio> | |||
<texture>$INFO[VideoPlayer.AudioCodec,flagging/audio/,.png]</texture> | |||
</control> | |||
<control type="image" id="1"> | |||
<description>Audio Channels Image</description> | |||
<width>50</width> | |||
<height>35</height> | |||
<aspectratio align="center">keep</aspectratio> | |||
<texture>$INFO[VideoPlayer.AudioChannels,flagging/audio/,.png]</texture> | |||
</control> | |||
</syntaxhighlight> | |||
C. Optionally you can also remove the language flags for the current enabled audio and subtitles. Find the following code just below the above code and comment it out. | |||
<syntaxhighlight lang="xml"> | |||
<control type="group" id="1"> | |||
<width>85</width> | |||
<height>35</height> | |||
<visible>!IsEmpty(VideoPlayer.AudioLanguage)</visible> | |||
<control type="image" id="1"> | |||
<left>5</left> | |||
<top>0</top> | |||
<description>Audio Language Image</description> | |||
<width>80</width> | |||
<height>35</height> | |||
<texture>flagging/AudioLang.png</texture> | |||
</control> | |||
<control type="label" id="1"> | |||
<left>38</left> | |||
<top>2</top> | |||
<width>47</width> | |||
<height>35</height> | |||
<font>font13</font> | |||
<align>left</align> | |||
<label>$INFO[VideoPlayer.AudioLanguage]</label> | |||
<textcolor>grey</textcolor> | |||
</control> | |||
</control> | |||
<control type="group" id="1"> | |||
<width>85</width> | |||
<height>35</height> | |||
<visible>!IsEmpty(VideoPlayer.SubtitlesLanguage)</visible> | |||
<control type="image" id="1"> | |||
<left>5</left> | |||
<top>0</top> | |||
<width>80</width> | |||
<height>35</height> | |||
<texture>flagging/SubLang.png</texture> | |||
</control> | |||
<control type="label" id="1"> | |||
<left>38</left> | |||
<top>2</top> | |||
<width>47</width> | |||
<height>35</height> | |||
<font>font13</font> | |||
<align>left</align> | |||
<label>$INFO[VideoPlayer.SubtitlesLanguage]</label> | |||
<textcolor>grey</textcolor> | |||
</control> | |||
</control> | |||
</syntaxhighlight> | |||
==Remove media flags from TV and Movie information== | |||
<gallery widths=500px heights=280px> | |||
File:Movieinfomediaflagsmodorg.png|Original movie information | |||
File:Movieinfomediaflagsmod.png|MOD | |||
</gallery><br /> | |||
A. Open the file [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/DialogVideoInfo.xml DialogVideoInfo.xml]. | |||
B. Find the following code and comment it out. It'll remove all media flags from the information window for episodes and movies (TV seasons don't have any media flags). | |||
<syntaxhighlight lang="xml"> | |||
<control type="grouplist"> | |||
<description>Media Codec Flagging Images</description> | |||
<left>200</left> | |||
<top>480</top> | |||
<width>600</width> | |||
<align>left</align> | |||
<itemgap>2</itemgap> | |||
<orientation>horizontal</orientation> | |||
<include>VisibleFadeEffect</include> | |||
<visible>!Control.IsVisible(50) + [Container.Content(Movies) | Container.Content(Episodes) | Container.Content(MusicVideos)]</visible> | |||
<include>VideoCodecFlaggingConditions</include> | |||
<include>AudioCodecFlaggingConditions</include> | |||
<include>AudioChannelsFlaggingConditions</include> | |||
<include>AspectCodecFlaggingConditions</include> | |||
<include>VideoStereoscopicsFlaggingConditions</include> | |||
<include>VideoTypeHackFlaggingConditions</include> | |||
</control> | |||
</syntaxhighlight> | |||
[[Category:How-to]] | [[Category:How-to]] | ||
[[Category:Skin_development]] |
Latest revision as of 21:25, 29 August 2020
![]() |
![]() |
![]() |
![]() |
This tutorial will show how to remove media flags from the video library views, the OSD, the Info screen and from TV/Movie information. This is achieved by editing ViewsFileMode.xml, ViewsVideoLibrary.xml, VideoFullScreen.xml and DialogVideoInfo.xml.
Remove media flags from the video library views
List
A. Open the file ViewsFileMode.xml.
The file starts with <include name="CommonRootView">, which is the include section for the List view.
B. Find <itemlayout height="40" width="580"> in the include section.
C. Find the following code in the itemlayout section and comment it out. It shows media flags (SD/HD) when the selection isn't on the row.
<control type="image"> <left>625</left> <top>8</top> <width>40</width> <height>26</height> <texture>$VAR[MediaInfoOverlayVar]</texture> <aspectratio>keep</aspectratio> <visible>Window.IsVisible(Videos) + [Container.Content(Movies) | Container.Content(Sets) | Container.Content(Episodes) | Container.Content(MusicVideos)]</visible> </control>
D. Find <focusedlayout height="40" width="580"> in the CommonRootView include section.
E. Find the following code in the focusedlayout section and comment it out. It shows media flags (SD/HD) when the selection is on the row.
<control type="image"> <left>625</left> <top>8</top> <width>40</width> <height>26</height> <texture>$VAR[MediaInfoOverlayVar]</texture> <aspectratio>keep</aspectratio> <visible>Window.IsVisible(Videos) + [Container.Content(Movies) | Container.Content(Sets) | Container.Content(Episodes) | Container.Content(MusicVideos)]</visible> </control>
Big list
A. Open the file ViewsFileMode.xml.
Find <include name="FullWidthList">, which is the include section for the Big list view.
B. Find <itemlayout height="40" width="1080"> in the include section.
C. Find the following code in the itemlayout section and comment it out. It shows media flags (SD/HD) when the selection isn't on the row.
<control type="image"> <left>1010</left> <top>8</top> <width>40</width> <height>26</height> <texture>$VAR[MediaInfoOverlayVar]</texture> <aspectratio>keep</aspectratio> <visible>Window.IsVisible(Videos) + [Container.Content(Movies) | Container.Content(Sets) | Container.Content(Episodes) | Container.Content(MusicVideos)]</visible> </control>
D. Find <focusedlayout height="40" width="1080"> in the FullWidthList include section.
E. Find the following code in the focusedlayout section and comment it out. It shows media flags (SD/HD) when the selection is on the row.
<control type="image"> <left>1010</left> <top>8</top> <width>40</width> <height>26</height> <texture>$VAR[MediaInfoOverlayVar]</texture> <aspectratio>keep</aspectratio> <visible>Window.IsVisible(Videos) + [Container.Content(Movies) | Container.Content(Sets) | Container.Content(Episodes) | Container.Content(MusicVideos)]</visible> </control>
Poster wrap
A. Open the file ViewsVideoLibrary.xml. The file starts with <include name="PosterWrapView"> which is the include section for the Poster wrap view.
B. Find the following code in the include section, it's the control section for the movie library. Poster wrap view in the TV library doesn't have media flags.
<control type="group"> <visible>Control.IsVisible(501) + [Container.Content(Movies) | Container.Content(Sets)]</visible>
C. Find the following code in the control section and comment it out. It'll remove the media flags from the movie library (the TV library don't have media flags in the Poster wrap view).
<control type="grouplist"> <description>Media Codec Flagging Images</description> <left>0</left> <top>610</top> <width>1280</width> <align>center</align> <itemgap>2</itemgap> <orientation>horizontal</orientation> <include>VideoCodecFlaggingConditions</include> <include>AudioCodecFlaggingConditions</include> <include>AudioChannelsFlaggingConditions</include> <include>AspectCodecFlaggingConditions</include> <include>VideoStereoscopicsFlaggingConditions</include> <include>VideoTypeHackFlaggingConditions</include> </control>
D. Optionally you can also remove "runtime" to get an even more cleaner look. Find the following code just above the code from step C and comment it out.
<control type="label"> <left>0</left> <top>580</top> <width>1280</width> <height>20</height> <font>font13</font> <textcolor>white</textcolor> <shadowcolor>black</shadowcolor> <scroll>true</scroll> <align>center</align> <aligny>center</aligny> <label>$INFO[ListItem.Duration,$LOCALIZE[2050] , $LOCALIZE[12391]]</label> </control>
Fanart
A. Open the file ViewsVideoLibrary.xml.
Find <include name="PosterWrapView2_Fanart">, which is the include section for the Fanart view.
B. Find the following code, it's the control section for the movie library.
<control type="group"> <left>180</left> <top>40</top> <visible>Control.IsVisible(508) + ![ListItem.IsFolder + Container.Content(Movies)] + !Skin.HasSetting(View508HideInfo) + !Container.Content(Sets)
C. Find the following code in the movie control section and comment it out. It removes media flags from the movie library. The TV Fanart view doesn't use media flags.
<control type="grouplist"> <description>Media Codec Flagging Images</description> <left>30</left> <top>360</top> <width>800</width> <align>left</align> <itemgap>2</itemgap> <orientation>horizontal</orientation> <include>VideoCodecFlaggingConditions</include> <include>AudioCodecFlaggingConditions</include> <include>AudioChannelsFlaggingConditions</include> <include>AspectCodecFlaggingConditions</include> <include>VideoStereoscopicsFlaggingConditions</include> <include>VideoTypeHackFlaggingConditions</include> </control> <control type="grouplist"> <description>MPAA Rating Flagging Images</description> <left>95</left> <top>360</top> <width>800</width> <align>right</align> <itemgap>0</itemgap> <orientation>horizontal</orientation> <include>VideoMPAAFlaggingConditions</include> </control>-->
Media info
A. Open the file ViewsVideoLibrary.xml.
Find <include name="MediaListView2"> (Media info=MediaListView2), which is the include section for the Media info view.
B. Find <itemlayout height="40" width="580"> in the include section.
C. Find the following code in the itemlayout section and comment it out. It shows media flags (SD/HD) when the selection isn't on the row.
<control type="image"> <left>515</left> <top>8</top> <width>40</width> <height>26</height> <texture>$VAR[MediaInfoOverlayVar]</texture> <aspectratio>keep</aspectratio> <visible>Container.Content(Movies) | Container.Content(Sets) | Container.Content(Episodes) | Container.Content(MusicVideos)</visible> </control>
D. Find <focusedlayout height="40" width="580"> in the MediaListView2 include section.
E. Find the following code in the focusedlayout section and comment it out. It shows media flags (SD/HD) when the selection is on the row.
<control type="image"> <left>515</left> <top>8</top> <width>40</width> <height>26</height> <texture>$VAR[MediaInfoOverlayVar]</texture> <aspectratio>keep</aspectratio> <visible>Container.Content(Movies) | Container.Content(Sets) | Container.Content(Episodes) | Container.Content(MusicVideos)</visible> </control>
F. Find the following code, it's the control section for the movie library and TV Shows.
<control type="group"> <left>710</left> <top>70</top> <visible>Control.IsVisible(504) + [Container.Content(Movies) | Container.Content(TVShows)]</visible>
G. Find the following code in the movie control section and comment it out. It removes media flags from the movie library.
<control type="grouplist"> <description>Media Codec Flagging Images</description> <left>0</left> <top>290</top> <width>510</width> <align>center</align> <itemgap>2</itemgap> <orientation>horizontal</orientation> <include>VideoCodecFlaggingConditions</include> <include>AudioCodecFlaggingConditions</include> <include>AudioChannelsFlaggingConditions</include> <include>AspectCodecFlaggingConditions</include> <include>VideoStereoscopicsFlaggingConditions</include> <include>VideoTypeHackFlaggingConditions</include> </control>
H. Find the following code, it's the control section TV episodes.
<control type="group"> <left>710</left> <top>70</top> <visible>Control.IsVisible(504) + Container.Content(Episodes)</visible>
I. Find the following code in the TV episodes control section and comment it out. It removes media flags from TV episodes.
<control type="grouplist"> <description>Media Codec Flagging Images</description> <left>0</left> <top>290</top> <width>510</width> <align>center</align> <itemgap>2</itemgap> <orientation>horizontal</orientation> <include>VideoCodecFlaggingConditions</include> <include>AudioCodecFlaggingConditions</include> <include>AudioChannelsFlaggingConditions</include> <include>AspectCodecFlaggingConditions</include> <include>VideoStereoscopicsFlaggingConditions</include> <include>VideoTypeHackFlaggingConditions</include> </control>
Media info 2
A. Open the file ViewsVideoLibrary.xml.
Find <include name="MediaListView3"> (Media info 2=MediaListView3), which is the include section for the Media info 2 view.
B. Find <itemlayout height="40" width="580">" in the include section.
C. Find the following code in the itemlayout section and comment it out. It shows media flags (SD/HD) when the selection isn't on the row.
<control type="image"> <left>515</left> <top>8</top> <width>40</width> <height>26</height> <texture>$VAR[MediaInfoOverlayVar]</texture> <aspectratio>keep</aspectratio> <visible>Container.Content(Movies) | Container.Content(Sets) | Container.Content(Episodes) | Container.Content(MusicVideos)</visible> </control>
D. Find <focusedlayout height="40" width="580"> in the MediaListView3 include section.
E. Find the following code in the focusedlayout section and comment it out. It shows media flags (SD/HD) when the selection is on the row.
<control type="image"> <left>515</left> <top>8</top> <width>40</width> <height>26</height> <texture>$VAR[MediaInfoOverlayVar]</texture> <aspectratio>keep</aspectratio> <visible>Container.Content(Movies) | Container.Content(Sets) | Container.Content(Episodes) | Container.Content(MusicVideos)</visible> </control>
F. Find the following code, it's the control section TV episodes.
<control type="group"> <left>710</left> <top>245</top> <visible>Container.Content(Episodes)</visible>
G. Find the following code in the TV episodes control section and comment it out. It removes media flags from TV episodes.
<control type="grouplist"> <description>Media Codec Flagging Images</description> <left>0</left> <top>210</top> <width>530</width> <align>center</align> <itemgap>2</itemgap> <orientation>horizontal</orientation> <include>VideoCodecFlaggingConditions</include> <include>AudioCodecFlaggingConditions</include> <include>AudioChannelsFlaggingConditions</include> <include>AspectCodecFlaggingConditions</include> <include>VideoStereoscopicsFlaggingConditions</include> <include>VideoTypeHackFlaggingConditions</include> </control>
H. Find the following code, it's the control section for the movie library.
<control type="group"> <left>710</left> <top>245</top> <visible>Container.Content(Movies)</visible>
I. Find the following code in the movie control section and comment it out. It removes media flags from the movie library.
<control type="grouplist"> <description>Media Codec Flagging Images</description> <left>0</left> <top>365</top> <width>530</width> <align>center</align> <itemgap>2</itemgap> <orientation>horizontal</orientation> <include>VideoCodecFlaggingConditions</include> <include>AudioCodecFlaggingConditions</include> <include>AudioChannelsFlaggingConditions</include> <include>AspectCodecFlaggingConditions</include> <include>VideoStereoscopicsFlaggingConditions</include> <include>VideoTypeHackFlaggingConditions</include> </control>
Media info 3
A. Open the file ViewsVideoLibrary.xml.
Find <include name="MediaListView4"> (Media info 3=MediaListView4), which is the include section for the Media info 3 view.
B. Find the following code, it's the control section for the movie library
<control type="group"> <left>470</left> <top>70</top> <visible>Control.IsVisible(515) + Container.Content(Movies)</visible>
C. Find the following code in the movie control section and comment it out. It removes media flags from the movie library.
<control type="grouplist"> <description>Media Codec Flagging Images</description> <left>0</left> <top>540</top> <width>540</width> <align>left</align> <itemgap>2</itemgap> <orientation>horizontal</orientation> <include>VideoCodecFlaggingConditions</include> <include>AudioCodecFlaggingConditions</include> <include>AudioChannelsFlaggingConditions</include> <include>AspectCodecFlaggingConditions</include> <include>VideoStereoscopicsFlaggingConditions</include> <include>VideoTypeHackFlaggingConditions</include> </control>
D. Find the following code, it's the control section for TV episodes.
<control type="group"> <left>470</left> <top>70</top> <visible>Control.IsVisible(515) + Container.Content(Episodes)</visible>
E. Find the following code in the TV episodes control section and comment it out. It removes media flags for TV episodes.
<control type="grouplist"> <description>Media Codec Flagging Images</description> <left>0</left> <top>540</top> <width>410</width> <align>left</align> <itemgap>2</itemgap> <orientation>horizontal</orientation> <include>VideoCodecFlaggingConditions</include> <include>AudioCodecFlaggingConditions</include> <include>AudioChannelsFlaggingConditions</include> <include>AspectCodecFlaggingConditions</include> <include>VideoStereoscopicsFlaggingConditions</include> <include>VideoTypeHackFlaggingConditions</include> </control>
Remove media flags from the OSD and Info screen
A. Open the file VideoFullScreen.xml.
B. Find the following code and comment it out. This will remove all media flags.
<control type="image" id="1"> <description>Video Resolution Image</description> <width>50</width> <height>35</height> <aspectratio align="center">keep</aspectratio> <texture>$INFO[VideoPlayer.VideoResolution,flagging/video/,.png]</texture> </control> <control type="image" id="1"> <description>Audio Codec Image</description> <width>85</width> <height>35</height> <aspectratio align="center">keep</aspectratio> <texture>$INFO[VideoPlayer.AudioCodec,flagging/audio/,.png]</texture> </control> <control type="image" id="1"> <description>Audio Channels Image</description> <width>50</width> <height>35</height> <aspectratio align="center">keep</aspectratio> <texture>$INFO[VideoPlayer.AudioChannels,flagging/audio/,.png]</texture> </control>
C. Optionally you can also remove the language flags for the current enabled audio and subtitles. Find the following code just below the above code and comment it out.
<control type="group" id="1"> <width>85</width> <height>35</height> <visible>!IsEmpty(VideoPlayer.AudioLanguage)</visible> <control type="image" id="1"> <left>5</left> <top>0</top> <description>Audio Language Image</description> <width>80</width> <height>35</height> <texture>flagging/AudioLang.png</texture> </control> <control type="label" id="1"> <left>38</left> <top>2</top> <width>47</width> <height>35</height> <font>font13</font> <align>left</align> <label>$INFO[VideoPlayer.AudioLanguage]</label> <textcolor>grey</textcolor> </control> </control> <control type="group" id="1"> <width>85</width> <height>35</height> <visible>!IsEmpty(VideoPlayer.SubtitlesLanguage)</visible> <control type="image" id="1"> <left>5</left> <top>0</top> <width>80</width> <height>35</height> <texture>flagging/SubLang.png</texture> </control> <control type="label" id="1"> <left>38</left> <top>2</top> <width>47</width> <height>35</height> <font>font13</font> <align>left</align> <label>$INFO[VideoPlayer.SubtitlesLanguage]</label> <textcolor>grey</textcolor> </control> </control>
Remove media flags from TV and Movie information
A. Open the file DialogVideoInfo.xml.
B. Find the following code and comment it out. It'll remove all media flags from the information window for episodes and movies (TV seasons don't have any media flags).
<control type="grouplist"> <description>Media Codec Flagging Images</description> <left>200</left> <top>480</top> <width>600</width> <align>left</align> <itemgap>2</itemgap> <orientation>horizontal</orientation> <include>VisibleFadeEffect</include> <visible>!Control.IsVisible(50) + [Container.Content(Movies) | Container.Content(Episodes) | Container.Content(MusicVideos)]</visible> <include>VideoCodecFlaggingConditions</include> <include>AudioCodecFlaggingConditions</include> <include>AudioChannelsFlaggingConditions</include> <include>AspectCodecFlaggingConditions</include> <include>VideoStereoscopicsFlaggingConditions</include> <include>VideoTypeHackFlaggingConditions</include> </control>