HOW-TO:Remove ratings in Confluence: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 54: Line 54:
A. Open the file [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/ViewsVideoLibrary.xml Views'''VideoLibrary'''.xml].
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 />
Find '''<include name="PosterWrapView2_Fanart">''', which is the ''include'' section for the ''Fanart'' view.<br />
B. Find the following code in the ''include'' section. This is a ''control group'' for the movie library.
B. Find the following code in the ''include'' section. This is a ''control'' section for the movie library.
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<control type="group">
<control type="group">
Line 61: Line 61:
<visible>Container.Content(Movies)</visible>
<visible>Container.Content(Movies)</visible>
</syntaxhighlight>
</syntaxhighlight>
C. Find the following code in the movie ''control group'' and comment it out, it removes "Ratings: X (Y votes)" from the movie library.
C. Find the following code in the movie ''control'' section and comment it out, it removes "Ratings: X (Y votes)" from the movie library.
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<control type="fadelabel">
<control type="fadelabel">
Line 79: Line 79:
</control>
</control>
</syntaxhighlight>
</syntaxhighlight>
D. Find the following code. This is a ''control group'' for the TV library.
D. Find the following code. This is a ''control'' section for the TV library.
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<control type="group">
<control type="group">
Line 86: Line 86:
<visible>Container.Content(TVShows)</visible>
<visible>Container.Content(TVShows)</visible>
</syntaxhighlight>
</syntaxhighlight>
E. Find the following code in the TV ''control group'' and comment it out, it removes "Ratings: X (Y votes)" from the TV library.
E. Find the following code in the TV ''control'' section and comment it out, it removes "Ratings: X (Y votes)" from the TV library.
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<control type="fadelabel">
<control type="fadelabel">
Line 150: Line 150:
</gallery><br />
</gallery><br />
This will remove "Rating: X (Y votes)" from the info windows. Note that the ''item'' section below is exactly the ''same'' for all of them.<br />
This will remove "Rating: X (Y votes)" from the info windows. Note that the ''item'' section below is exactly the ''same'' for all of them.<br />
A. Open the file [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/DialogVideoInfo.xml DialogVideoInfo.xml]. Find the following code. This ''control group'' section is for the info window for ''movies''.
A. Open the file [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/DialogVideoInfo.xml DialogVideoInfo.xml]. Find the following code. This ''control'' section section is for the info window for ''movies''.
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<control type="group">
<control type="group">
<visible>[!container.content(tvshows) + !container.content(episodes) + !container.content(musicvideos)] + ![Control.HasFocus(12) | Control.HasFocus(15)]</visible>
<visible>[!container.content(tvshows) + !container.content(episodes) + !container.content(musicvideos)] + ![Control.HasFocus(12) | Control.HasFocus(15)]</visible>
</syntaxhighlight>
</syntaxhighlight>
B. Find the following code within the ''control group'' and comment it out.
B. Find the following code within the ''control'' section and comment it out.
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<item>
<item>
Line 164: Line 164:
</item>
</item>
</syntaxhighlight>
</syntaxhighlight>
C. Find the following code. This ''control group'' section is for the info window for ''TV Shows/seaons''.
C. Find the following code. This ''control'' section section is for the info window for ''TV Shows/seaons''.
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<control type="group">
<control type="group">
         <visible>Container.Content(TVShows) + !Control.HasFocus(12)</visible>
         <visible>Container.Content(TVShows) + !Control.HasFocus(12)</visible>
</syntaxhighlight>
</syntaxhighlight>
D. Find the following code within the ''control group'' and comment it out.
D. Find the following code within the ''control'' section and comment it out.
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<item>
<item>
Line 178: Line 178:
</item>
</item>
</syntaxhighlight>
</syntaxhighlight>
E. Find the following code. This ''control group'' section is for the info window for TV ''episodes''.
E. Find the following code. This ''control'' section section is for the info window for TV ''episodes''.
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<control type="group">
<control type="group">
<visible>container.content(episodes) + !Control.HasFocus(12)</visible>
<visible>container.content(episodes) + !Control.HasFocus(12)</visible>
</syntaxhighlight>
</syntaxhighlight>
F. Find the following code within the ''control group'' and comment it out.
F. Find the following code within the ''control'' section and comment it out.
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<item>
<item>

Revision as of 06:40, 12 September 2015

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

This tutorial will show how to remove ratings from the library views List/Big list/Media info/Media info 2 and from TV/Movie information. This is achieved by editing ViewsFileMode.xml, ViewsVideoLibrary.xml and DialogVideoInfo.xml.

Remove ratings from libray views


This will not just remove ratings. It will also remove episode count (when browsing shows), play count, MPAA rating and date from the library view you've edited (when selecting the corresponding sort). That's not that big of a problem if you e.g. only use the List view for browsing movies/episodes and you don't use its other sorts. This mod doesn't break the actual sorting, it just removes the text. It also doesn't affect the File views (Video->Files). Note that the code below, the control section, is the exact same for all four 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 the following code in the include section and comment it out. The exact same code is in two places in the CommonRootView include. The first one shows name/ratings/date in grey when the selection isn't on the row, while the second one is for showing name/ratings/date in white when the selection is on the row. Both must be commented out.

<control type="label">
	<left>220</left>
	<top>0</top>
	<width>400</width>
	<height>40</height>
	<font>font12</font>
	<textcolor>grey2</textcolor>
	<selectedcolor>selected</selectedcolor>
	<align>right</align>
	<aligny>center</aligny>
	<label>$INFO[ListItem.Label2]</label>
	<visible>Window.IsVisible(Videos)</visible>
	<animation effect="slide" start="0,0" end="40,0" delay="0" time="0" condition="![Container.Content(Movies) | Container.Content(Episodes) | Container.Content(MusicVideos)]">conditional</animation>
</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 the following code in the include section and comment it out. The exact same code is in two places in the FullWidthList include. The first one shows name/ratings/date in grey when the selection isn't on the row, while the second one is for showing name/ratings/date in white when the selection is on the row. Both must be commented out.

<control type="label">
	<left>220</left>
	<top>0</top>
	<width>400</width>
	<height>40</height>
	<font>font12</font>
	<textcolor>grey2</textcolor>
	<selectedcolor>selected</selectedcolor>
	<align>right</align>
	<aligny>center</aligny>
	<label>$INFO[ListItem.Label2]</label>
	<visible>Window.IsVisible(Videos)</visible>
	<animation effect="slide" start="0,0" end="40,0" delay="0" time="0" condition="![Container.Content(Movies) | Container.Content(Episodes) | Container.Content(MusicVideos)]">conditional</animation>
</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 in the include section. This is a control section for the movie library.

<control type="group">
	<left>40</left>
	<top>50</top>
	<visible>Container.Content(Movies)</visible>

C. Find the following code in the movie control section and comment it out, it removes "Ratings: X (Y votes)" from the movie library.

<control type="fadelabel">
	<left>0</left>
	<top>105</top>
	<width>400</width>
	<height>30</height>
	<font>font13</font>
	<textcolor>white</textcolor>
	<shadowcolor>black</shadowcolor>
	<scroll>true</scroll>
	<align>left</align>
	<aligny>center</aligny>
	<label>$LOCALIZE[563] : $INFO[ListItem.RatingAndVotes]</label>
	<scrollout>false</scrollout>
	<pauseatend>2000</pauseatend>
</control>

D. Find the following code. This is a control section for the TV library.

<control type="group">
	<left>40</left>
	<top>50</top>
	<visible>Container.Content(TVShows)</visible>

E. Find the following code in the TV control section and comment it out, it removes "Ratings: X (Y votes)" from the TV library.

<control type="fadelabel">
	<left>0</left>
	<top>80</top>
	<width>400</width>
	<height>30</height>
	<font>font13</font>
	<textcolor>white</textcolor>
	<shadowcolor>black</shadowcolor>
	<scroll>true</scroll>
	<align>left</align>
	<aligny>center</aligny>
	<label>$LOCALIZE[563] : $INFO[ListItem.RatingAndVotes]</label>
	<scrollout>false</scrollout>
	<pauseatend>2000</pauseatend>
</control>

Media info

A. Open the file ViewsVideoLibrary.xml. Find <include name="MediaListView2"> (No, it's not a typo. Media info=MediaListView2), which is the include section for the Media info view.
B. Find the following code in the include section and comment it out. The exact same code is in two places in the MediaListView2 include. The first one shows name/ratings/date in grey when the selection isn't on the row, while the second one is for showing name/ratings/date in white when the selection is on the row. Both must be commented out.

<control type="label">
	<left>220</left>
	<top>0</top>
	<width>400</width>
	<height>40</height>
	<font>font12</font>
	<textcolor>grey2</textcolor>
	<selectedcolor>selected</selectedcolor>
	<align>right</align>
	<aligny>center</aligny>
	<label>$INFO[ListItem.Label2]</label>
	<visible>Window.IsVisible(Videos)</visible>
	<animation effect="slide" start="0,0" end="40,0" delay="0" time="0" condition="![Container.Content(Movies) | Container.Content(Episodes) | Container.Content(MusicVideos)]">conditional</animation>
</control>

Media info 2

A. Open the file ViewsVideoLibrary.xml. Find <include name="MediaListView3"> (No, it's not a typo. Media info 2=MediaListView3), which is the include section for the Media info 2 view.
B. Find the following code in the include section and comment it out. The exact same code is in two places in the MediaListView3 include. The first one shows name/ratings/date in grey when the selection isn't on the row, while the second one is for showing name/ratings/date in white when the selection is on the row. Both must be commented out.

<control type="label">
	<left>220</left>
	<top>0</top>
	<width>400</width>
	<height>40</height>
	<font>font12</font>
	<textcolor>grey2</textcolor>
	<selectedcolor>selected</selectedcolor>
	<align>right</align>
	<aligny>center</aligny>
	<label>$INFO[ListItem.Label2]</label>
	<visible>Window.IsVisible(Videos)</visible>
	<animation effect="slide" start="0,0" end="40,0" delay="0" time="0" condition="![Container.Content(Movies) | Container.Content(Episodes) | Container.Content(MusicVideos)]">conditional</animation>
</control>

Remove ratings and votes from TV and Movie information


This will remove "Rating: X (Y votes)" from the info windows. Note that the item section below is exactly the same for all of them.
A. Open the file DialogVideoInfo.xml. Find the following code. This control section section is for the info window for movies.

<control type="group">
	<visible>[!container.content(tvshows) + !container.content(episodes) + !container.content(musicvideos)] + ![Control.HasFocus(12) | Control.HasFocus(15)]</visible>

B. Find the following code within the control section and comment it out.

<item>
	<label>$LOCALIZE[563]:</label>
	<label2>$INFO[ListItem.RatingAndVotes]</label2>
	<onclick>noop</onclick>
	<visible>!IsEmpty(ListItem.RatingAndVotes)</visible>
</item>

C. Find the following code. This control section section is for the info window for TV Shows/seaons.

<control type="group">
        <visible>Container.Content(TVShows) + !Control.HasFocus(12)</visible>

D. Find the following code within the control section and comment it out.

<item>
	<label>$LOCALIZE[563]:</label>
	<label2>$INFO[ListItem.RatingAndVotes]</label2>
	<onclick>noop</onclick>
	<visible>!IsEmpty(ListItem.RatingAndVotes)</visible>
</item>

E. Find the following code. This control section section is for the info window for TV episodes.

<control type="group">
	<visible>container.content(episodes) + !Control.HasFocus(12)</visible>

F. Find the following code within the control section and comment it out.

<item>
	<label>$LOCALIZE[563]:</label>
	<label2>$INFO[ListItem.RatingAndVotes]</label2>
	<onclick>noop</onclick>
	<visible>!IsEmpty(ListItem.RatingAndVotes)</visible>
</item