Custom flag in movies list
#1
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.
Reply
#2
(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/5415...1ace7f3f42
Reply
#3
(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/5415...1ace7f3f42

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.
Reply
#4
Where's /storage/pictures/vo.png located?
Reply
#5
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
Reply

Logout Mark Read Team Forum Stats Members Help
Custom flag in movies list0