Kodi Community Forum
Custom flag in movies list - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Confluence (https://forum.kodi.tv/forumdisplay.php?fid=125)
+---- Thread: Custom flag in movies list (/showthread.php?tid=349015)



Custom flag in movies list - asturnauta - 2019-11-06

Hi

I had using a little modification in skin during years to add a custom flag into movies list modifying ViewsVideoLibrary.xml and ViewsFilesMode.xml to show at the left of the year, rating and shown flag to show this image when the file or the path of the movie contains a pease of text, but it is not working now, and i don't remeber if it is not work by updatint to kodi Leia.

The code is:
Code:

<control type="image">
                        <left>440</left>
                        <top>8</top>
                        <width>40</width>
                        <height>26</height>
                        <texture>/storage/pictures/vo.png</texture>
                        <visible>substring(ListItem.FilenameAndPath,VOSE)</visible>
</control>

When the movie file or the path contains 'VOSE' (in the path or filename) this custom image was appearing in the movies list but now it is not working.

Mayby in the update to kodi Leia the code tags were changed?
Can someone tell me if the code is correct for Leia now?

Thanks a lot.


RE: Custom flag in movies list - Hitcher - 2019-11-10

(2016-12-13, 00:19)ronie Wrote: 2016-12-12 removed infobools

these old deprecated infobools have now been removed:
- StringCompare() (use String.IsEqual instead)
- SubString() (use String.Contains instead)
- IntegerGreaterThan() (use Integer.IsGreater instead)
- IsEmpty() (use String.IsEmpty instead)



pull-request: https://github.com/xbmc/xbmc/pull/11058
commit: https://github.com/xbmc/xbmc/commit/541576b03ea7a695b68cde557662991ace7f3f42



RE: Custom flag in movies list - asturnauta - 2019-11-14

(2019-11-10, 23:53)Hitcher Wrote:
(2016-12-13, 00:19)ronie Wrote: 2016-12-12 removed infobools

these old deprecated infobools have now been removed:
- StringCompare() (use String.IsEqual instead)
- SubString() (use String.Contains instead)
- IntegerGreaterThan() (use Integer.IsGreater instead)
- IsEmpty() (use String.IsEmpty instead)



pull-request: https://github.com/xbmc/xbmc/pull/11058
commit: https://github.com/xbmc/xbmc/commit/541576b03ea7a695b68cde557662991ace7f3f42

Hi

Thanks for the information.

I have changed the code with:
xml:

<control type="image">
                        <left>440</left>
                        <top>8</top>
                        <width>40</width>
                        <height>26</height>
                        <texture>/storage/pictures/vo.png</texture>
                        <visible>String.Contains(ListItem.FilenameAndPath,VOSE)</visible>
</control>

But it still not showing the image vo.png

I'm still investigating.

Regards.


RE: Custom flag in movies list - Hitcher - 2019-11-14

Where's /storage/pictures/vo.png located?


RE: Custom flag in movies list - the_other_guy - 2019-11-15

rating and shown flag to show this image when the file or the path of the movie contains a pease of text
<texture>/storage/pictures/vo.png</texture>
$INFO[Player.FolderPath]vo.png
$INFO[Player.FilenameAndPath]vo.png