2018-08-06, 13:02
(2018-08-03, 17:59)UbuntuUser Wrote:Try the following:(2018-08-03, 10:23)cartman.dos Wrote:Ok I am sorry I am a bit lost now, if I am understanding you correctly. You are saying use this (NPO 1 HD as example)...(2018-08-03, 09:03)UbuntuUser Wrote: No unfortunately that did not work. I believe I know what the problem is just not how to fix it. I believe the problem is this...yeah, you could test each variable value/add new ones from here related to pvr (https://kodi.wiki/view/InfoLabels) (channellogo) to see if one works for u, u can add an empty conditioned value to test if all fails, eg, <value>IMAGEPATH</value>.
get_channellogo(channelname)
Returns the channellogo (if found) for the given channel name.
Looks up kodi PVR addon first, and fallsback to the logo db.
The issue is my channel logo's are stored locally not on my backend, and in Kodi 15 there were xml files pointing them to the locally stored ones but in 17 that is not the case.
If it's not even in the db, then obviously kodi won't be able to get it with a native method but u can add the path manually, even in the skin - general idea, <value condition="String.IsEqual(CHANNEL_TITLE_VAR_IN_SKIN,CHANNEL_TITLE)>imagepath://CHANNELLOGO.PNG</value>
<value condition="String.IsEqual(CHANNEL_TITLE_VAR_IN_SKIN,NPO 1 HD)>imagepath://NPO 1 HD.PNG</value>
The part I am not clear on is where does this go, what file? Also what is CHANNEL_TITLE_VAR_IN_SKIN or how do I find it?
Thanks for the help.
(a) edit includesFooter.xml:
search for #id "44123", this control should show the logo in the footer.
dry-test: put some picture in the skin's media dir, and copy name+extension to the texture tag, eg
Code:
<texture background="true">test.png</texture>
(b) return the original texture in the above control and edit includesVariable.xml:
go to "<variable name="channellogo">"
add this line:
note the channel's name in the string.isequal param should be exactly as u see it in kodi, the png can have whatever name u want. as long as u give the correct path (or just name&extension if u put in under media dir in the skin's dir).
Code:
<value condition="String.IsEqual(ListItem.ChannelName,NPO 1 HD)">NPO_1_HD.PNG</value>
not the most elegant solution, but a simple one.