Kodi Community Forum
v18 Missing EPG pictures for episodes (xmltv) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: PVR & Live TV Support (https://forum.kodi.tv/forumdisplay.php?fid=167)
+---- Forum: Tvheadend (https://forum.kodi.tv/forumdisplay.php?fid=168)
+---- Thread: v18 Missing EPG pictures for episodes (xmltv) (/showthread.php?tid=349742)



Missing EPG pictures for episodes (xmltv) - giaur - 2019-12-02

Kodi 18.5, Tvheadend 4.3. That is how description looks at Tvheadend:

Image

So picture is there and correctly displayed. However, Kodi does not want to display any picture:

Image

It seems it sometimes works in Kodi also, sometimes not and it depeneds from xmltv source, but have no idea where is problem exactly. For example, other channel/episode in Kodi:

Image

So, this time picture is visible both in Kodi and Tvheadend. Do you have any ideas why Kodi sometimes won't load picture? Both pictures are direct link to images:

https://media.teleman.pl/photos/470x265/Fakty-w-Poludnie.jpg
https://ocdn.eu/program-tv/new-upload-images/images-b6b842ff-ecb5-4f56-b7c6-f80ac090a662


RE: Missing EPG pictures for episodes (xmltv) - nakquada - 2020-03-06

Hiya,

Did you have any luck with this after?


RE: Missing EPG pictures for episodes (xmltv) - giaur - 2020-03-06

(2020-03-06, 14:36)nakquada Wrote: Hiya,

Did you have any luck with this after?

Nope


RE: Missing EPG pictures for episodes (xmltv) - nakquada - 2020-03-06

Dang,

Surely there has to be an easy fix.


RE: Missing EPG pictures for episodes (xmltv) - JiRo - 2020-03-17

@giaur I had the same problem. I use WG ++ for xmltv generation, my data source is from Czech TV Guide server sms.cz. I searched for possible causes of the problem and found it in xmltv content. The link to the image exists, but the URL is missing http: prefix.

So I suggest you check the contents of xmltv.xml if you find something like that:

<icon src = "//www.o2tv.co.uk/img/epg/amc_hd/25627797/profi_cover.jpg" />

so try to replace it

<icon src = "https://www.o2tv.com/img/epg/amc_hd/25627797/profi_cover.jpg" />

All you need to do is edit xmltv.xml file and search text <icon src = "// and replace with <icon src =" http://

If you use the WG ++ application to generate xmltv.xml in the Linux or *ELEC system, you can insert a sed command with this editing into the post process script.

Good luck!

JiRo


RE: Missing EPG pictures for episodes (xmltv) - giaur - 2020-03-17

Yep you are right. WG++ generates invalid urls when extracting from one of my providers. TvH somehow parses them though, unlike Kodi.

Either parser definition for WG++ needs to be fixed (which I have no idea how to do), or sed needs to be applied on result xml.


RE: Missing EPG pictures for episodes (xmltv) - JiRo - 2020-03-18

@giaur If you use WG++ on Linux, just give the sed command to the script that runs WG++. If you use *ELEC with a WG++ addon, there is a possibility to put a script named after.sh into the directory ...kodi/user_data/service.webgrabplus. This script will run automatically when grabbing is finished.

Sed command can look like this:

sed -i.bac 's;<icon src="//;<icon src="http://;g' guide.xml

The script can look like this:

#! /bin/sh
dir=$(dirname $0)
sed -i.bac 's;<icon src="//;<icon src="http://;g' ${dir}/guide.xml
exit