Kodi Community Forum
Need your help for condition OriginalLabel - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Need your help for condition OriginalLabel (/showthread.php?tid=205219)



Need your help for condition OriginalLabel - Reynald - 2014-09-26

here's what I coded, I added original condition for Label, it works well for movies, but does not work for other content,
Not Working Sets, tvshows, episode etc. .. it hides the title, it is invisible.
I looked at what else skin is doing, but I do not want any rename in views.
is that there is an error? or one thing missing. thank you for your help.



PHP Code:
<variable name="global_Title">
        <
value condition="Window.IsActive(videoplaylist) + !IsEmpty(ListItem.TVShowTitle)">$INFO[ListItem.Title]</value>
        <
value condition="Window.IsActive(videoplaylist) + IsEmpty(ListItem.TVShowTitle)">$INFO[ListItem.Label]</value>
        <
value condition="Container.Content(episodes) + [SubString(Container.FolderName,$LOCALIZE[20387]) | SubString(Container.FolderPath,special://skin/playlists/) | SubString(Container.FolderPath,special://profile/playlists/) | SubString(Container.FolderPath,plugin://script.watchlist/)] + !IsEmpty(ListItem.Title)">$INFO[ListItem.TVShowTitle]$INFO[ListItem.Title,: ]</value>
        <
value condition="Container.Content(episodes) + !IsEmpty(ListItem.Title)">$INFO[ListItem.Title]</value>
        <
value condition="Container.Content(musicvideos) + !IsEmpty(ListItem.Title)">$INFO[ListItem.Title]</value>
        <
value condition="[SubString(Container.FolderPath,musicdb://singles/) | SubString(Container.FolderPath,musicdb://top100/songs/)] + !IsEmpty(ListItem.Title)">$INFO[ListItem.Title]</value>
        <
value condition="Container.Content(songs) + !IsEmpty(ListItem.Title)">$INFO[ListItem.Tracknumber,,. ]$INFO[ListItem.Title]</value>
        <
value condition="!Skin.HasSetting(titleoriginal)">$INFO[ListItem.Label]</value>
        <
value condition="Skin.HasSetting(titleoriginal) + !IsEmpty(ListItem.OriginalTitle) + !Stringcompare(ListItem.OriginalTitle,ListItem.Title)">$INFO[ListItem.OriginalTitle]</value>
    </
variable



RE: Need your help for condition OriginalLabel - Reynald - 2014-09-26

I'm an silly Wink , I forgot to added <value> $ INFO [ListItem.Label] </ value>
Sorry. I'm a little ''head in sky ''