Jump to content

Making a Custom XML EPG for a single channel


Go to solution Solved by fonzie,

Recommended Posts

Posted

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.

  • Thanks 1
  • Solution
Posted

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" />

 

  • Thanks 1
Posted

Hi, thanks for following up.

  • 11 months later...
SalimRahmani
Posted

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!

Posted

Hi, currently only the icon node is processed, but we could certainly look at supporting image.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...