HOW-TO:Remove media flags in Confluence: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
Line 29: Line 29:
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) count when the selection ''is'' on the row.
E. Find 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">

Revision as of 08:51, 16 September 2015

Home icon grey.png   ▶ Skinning ▶ Confluence ▶ HOW-TO:Remove media flags in Confluence

This tutorial will show how to remove media flags from the video library views. This is achieved by editing ViewsFileMode.xml and ViewsVideoLibrary.xml.

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 following code in the itemlayout section and comment it out. It shows media flags (SD/HD) when the selection isn't on the row.

480.png 1080.png

<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 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 following code in the itemlayout section and comment it out. It shows media flags (SD/HD) when the selection isn't on the row.
480.png 1080.png

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

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

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 following code in the itemlayout section and comment it out. It shows media flags (SD/HD) when the selection isn't on the row.
480.png 1080.png

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

Media info 3