fonzie 23 Posted June 10, 2023 Posted June 10, 2023 I'm trying to make a custom xml listing for a channel. I'm using the template below: <?xml version="1.0" encoding="utf-8"?> <tv date="1/1/2021 12:00:00 PM" source-info-url="" source-info-name="" generator-info-name="" generator-info-url=""> <channel id="NAME OF YOUR CHANNEL HERE"> <display-name>NAME OF YOUR CHANNEL HERE</display-name> </channel> <programme channel="NAME OF YOUR CHANNEL HERE" start="20210101000000 +0000" stop="20211231235900 +0000"> <title>CHANNEL TITLE HERE</title> <desc>CHANNEL DESCRIPTION HERE</desc> <sub-title>CHANNEL SUB TITLE HERE</sub-title> </programme> </tv> But I'm wondering how I can add a poster to the program. All of the programs on my EPG currently have posters so I'm wondering what code I can add to this xml to have my custom channel display a poster for it as well. 1
Solution fonzie 23 Posted June 10, 2023 Author Solution Posted June 10, 2023 I found the answer on this page: https://github.com/XMLTV/xmltv/blob/master/xmltv.dtd for those wondering. I put the code in between the <programe> brackets. The code used is: <icon src="https://example.com/url_to_program_poster.jpg" width="100" height="100" /> 1
SalimRahmani 1 Posted May 26, 2024 Posted May 26, 2024 Hi everyone, I’ve been following this discussion with great interest and appreciate the helpful information shared. However, I wanted to clarify something regarding the use of posters in the XMLTV format. While the <icon> tag is indeed used for logos, the xmltv.dtd also defines a dedicated <image> tag that can specify types of images like posters and backdrops. Here’s an example of how it can be used: <programme channel="NAME OF YOUR CHANNEL HERE" start="20210101000000 +0000" stop="20211231235900 +0000"> <title>Programme Title</title> <desc>Programme description</desc> <sub-title>...</sub-title> ... <image type="poster" size="2" orient="P" system="example_system">https://example.com/url_to_program_poster.jpg</image> <image type="backdrop" size="3" orient="L" system="example_system">https://example.com/url_to_program_backdrop.jpg</image> </programme> This might provide more flexibility and specificity for different types of images compared to using the <icon> tag. I’m curious if Emby supports the <image> tag in the XMLTV format? If anyone has experience or insights on this, it would be great to hear your thoughts. Thanks!
Luke 42989 Posted May 26, 2024 Posted May 26, 2024 Hi, currently only the icon node is processed, but we could certainly look at supporting image.
hjebbour 0 Posted 12 hours ago Posted 12 hours ago @LukeAny update on supporting <image> withing Live TV guide programs? Thanks.
Luke 42989 Posted 11 hours ago Posted 11 hours ago 1 hour ago, hjebbour said: @LukeAny update on supporting <image> withing Live TV guide programs? Thanks. Hi, you can’t use the conventions that already exist?
hjebbour 0 Posted 11 hours ago Posted 11 hours ago I am using the default XMLTV TV Guide pluging in Emby and some programs that uses <image> instead of <icon> do not show images in Emby
Luke 42989 Posted 21 minutes ago Posted 21 minutes ago 10 hours ago, hjebbour said: I am using the default XMLTV TV Guide pluging in Emby and some programs that uses <image> instead of <icon> do not show images in Emby Actually looks like we did add support for it, but it needs to have the type attribute to tell us if it's a poster or backdrop. Maybe yours is missing that? Anyway, what xml source is this? why would they mix image and icon nodes?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now