HD media flags in library in list view - Falcon_X - 2020-06-11
I want to achieve something like this:
https://kodi.wiki/view/HOW-TO:Remove_media_flags_in_Confluence
(1st picture)
Which files have to be modified to show HD media flags on the right side?
I'm running LibreElec.
RE: HD media flags in library in list view - the_other_guy - 2020-06-11
View_50_List.xml
i have use this code to show images
<visible>String.IsEqual(ListItem.VideoResolution,480)|
xml:
<control type="image">
<left>25</left>
<top>-10</top>
<width>270</width>
<height>400</height>
<texture>flags/cases/dvd.png</texture>
<visible>String.IsEqual(ListItem.VideoResolution,480)| String.IsEqual(ListItem.VideoResolution,554) | String.IsEqual(ListItem.VideoResolution,576)| String.IsEqual(ListItem.VideoResolution,574)| String.IsEqual(ListItem.VideoResolution,572)| String.IsEqual(ListItem.VideoResolution,568)| String.IsEqual(ListItem.VideoResolution,566)| String.IsEqual(ListItem.VideoResolution,562)| String.IsEqual(ListItem.VideoResolution,558)| String.IsEqual(ListItem.VideoResolution,556) | String.IsEqual(ListItem.VideoResolution,720)</visible>
<!-- 576, 574, 572, 568, 566, 562, 558, 556, 554 -->
</control>
<control type="image">
<left>15</left>
<top>-10</top>
<width>290</width>
<height>400</height>
<texture>flags/cases/bluray.png</texture>
<visible>String.IsEqual(ListItem.VideoResolution,1080)</visible>
</control>
<control type="image">
<left>15</left>
<top>-10</top>
<width>290</width>
<height>400</height>
<texture>flags/cases4k.png</texture>
<visible>String.IsEqual(ListItem.VideoResolution,4k)</visible>
</control>
RE: HD media flags in library in list view - Falcon_X - 2020-06-12
(2020-06-11, 13:37)the_other_guy Wrote: View_50_List.xml
i have use this code to show images
<visible>String.IsEqual(ListItem.VideoResolution,480)|
xml:
<control type="image">
<left>25</left>
<top>-10</top>
<width>270</width>
<height>400</height>
<texture>flags/cases/dvd.png</texture>
<visible>String.IsEqual(ListItem.VideoResolution,480)| String.IsEqual(ListItem.VideoResolution,554) | String.IsEqual(ListItem.VideoResolution,576)| String.IsEqual(ListItem.VideoResolution,574)| String.IsEqual(ListItem.VideoResolution,572)| String.IsEqual(ListItem.VideoResolution,568)| String.IsEqual(ListItem.VideoResolution,566)| String.IsEqual(ListItem.VideoResolution,562)| String.IsEqual(ListItem.VideoResolution,558)| String.IsEqual(ListItem.VideoResolution,556) | String.IsEqual(ListItem.VideoResolution,720)</visible>
<!-- 576, 574, 572, 568, 566, 562, 558, 556, 554 -->
</control>
<control type="image">
<left>15</left>
<top>-10</top>
<width>290</width>
<height>400</height>
<texture>flags/cases/bluray.png</texture>
<visible>String.IsEqual(ListItem.VideoResolution,1080)</visible>
</control>
<control type="image">
<left>15</left>
<top>-10</top>
<width>290</width>
<height>400</height>
<texture>flags/cases4k.png</texture>
<visible>String.IsEqual(ListItem.VideoResolution,4k)</visible>
</control>
Thanks!
Already had a look on it. A bit complicated, I might switch to Aura skin, it has these media flags already built in.
|