# XMLTV code structure

**URL:** <https://forums.plex.tv/t/xmltv-code-structure/565163>\
**Category:** Live TV & DVR\
**Tags:** livetv-dvr\
**Created:** [March 31, 2020, 12:35am UTC](https://forums.plex.tv/t/xmltv-code-structure/565163 "2020-03-31T00:35:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![PetrMenzel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/petrmenzel/32/344555_2.png) [@PetrMenzel](https://forums.plex.tv/u/PetrMenzel)\
**Post date:** [March 31, 2020, 12:35am UTC](https://forums.plex.tv/t/xmltv-code-structure/565163/1 "2020-03-31T00:35:55Z")

</div>

Could Plex provide structure of XMLTV which is supported? Example code or file.

- Link to posters with supported images
- Link to channels icons
- How to correctly divide film and show

---

<div class="post-metadata">

**Author:** ![BigWheel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bigwheel/32/78783_2.png) [@BigWheel](https://forums.plex.tv/u/BigWheel)\
**Post date:** [March 31, 2020, 1:22am UTC](https://forums.plex.tv/t/xmltv-code-structure/565163/2 "2020-03-31T01:22:26Z")

</div>

We don’t have a guide sorry. We can read the same sorta formatting as popular XMLTV sites like IceTV and others you can find links to their sites here [https://support.plex.tv/articles/using-an-xmltv-guide/](https://support.plex.tv/articles/using-an-xmltv-guide/) There is also a forum topic linked where some users in New Zealand made their own

---

<div class="post-metadata">

**Author:** ![PetrMenzel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/petrmenzel/32/344555_2.png) [@PetrMenzel](https://forums.plex.tv/u/PetrMenzel)\
**Post date:** [March 31, 2020, 11:25am UTC](https://forums.plex.tv/t/xmltv-code-structure/565163/3 "2020-03-31T11:25:39Z")

</div>

I am using [https://epgguide.net/](https://epgguide.net/), the best for my country epg data for good price. Could you provide how Plex work with epg data? In the past someone advised that Plex is downloading posters via agents. But I do not think so.

---

<div class="post-metadata">

**Author:** ![jwrober](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jwrober/32/147040_2.png) [@jwrober](https://forums.plex.tv/u/jwrober)\
**Post date:** [March 31, 2020, 4:35pm UTC](https://forums.plex.tv/t/xmltv-code-structure/565163/4 "2020-03-31T16:35:38Z")

</div>

The DTD is here

[http://wiki.xmltv.org/index.php/XMLTVFormat](http://wiki.xmltv.org/index.php/XMLTVFormat)

---

<div class="post-metadata">

**Author:** ![PetrMenzel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/petrmenzel/32/344555_2.png) [@PetrMenzel](https://forums.plex.tv/u/PetrMenzel)\
**Post date:** [March 31, 2020, 5:04pm UTC](https://forums.plex.tv/t/xmltv-code-structure/565163/5 "2020-03-31T17:04:58Z")

</div>

And supported files are png, jpeg, GIF? Which resolution?

---

<div class="post-metadata">

**Author:** ![PetrMenzel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/petrmenzel/32/344555_2.png) [@PetrMenzel](https://forums.plex.tv/u/PetrMenzel)\
**Post date:** [March 31, 2020, 5:11pm UTC](https://forums.plex.tv/t/xmltv-code-structure/565163/6 "2020-03-31T17:11:50Z")

</div>

`<programme start="20080715010000 -0600" stop="20080715023000 -0600" channel="I10436.labs.zap2it.com"> <title lang="en">Mystery!</title> <sub-title lang="en">Foyle's War, Series IV: Bleak Midwinter</sub-title> <desc lang="en">Foyle investigates an explosion at a munitions factory, which he comes to believe may have been premeditated.</desc> <date>20070701</date> <category lang="en">Anthology</category> <category lang="en">Mystery</category> <category lang="en">Series</category> <episode-num system="dd_progid">EP00003026.0665</episode-num> <episode-num system="onscreen">2705</episode-num> <audio> <stereo>stereo</stereo> </audio> <previously-shown start="20070701000000" /> <subtitles type="teletext" /> </programme>`

Where is source of movie or show poster?  
Where is code for series and episode number?

---

<div class="post-metadata">

**Author:** ![jwrober](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jwrober/32/147040_2.png) [@jwrober](https://forums.plex.tv/u/jwrober)\
**Post date:** [March 31, 2020, 5:49pm UTC](https://forums.plex.tv/t/xmltv-code-structure/565163/7 "2020-03-31T17:49:45Z")

</div>

For zap2xml you have to ask for in in the command line. This is my command line

./zap2xml.pl -u [email] -p [pass] -d 14 -S .01 -c [cache dir] -i [icons dir] -o xmltv.xml -E “amp apos quot lt gt” -F -M -D -I -j -T

---

<div class="post-metadata">

**Author:** ![PetrMenzel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/petrmenzel/32/344555_2.png) [@PetrMenzel](https://forums.plex.tv/u/PetrMenzel)\
**Post date:** [March 31, 2020, 8:34pm UTC](https://forums.plex.tv/t/xmltv-code-structure/565163/8 "2020-03-31T20:34:54Z")

</div>

Could you send example of your xml?

---

<div class="post-metadata">

**Author:** ![PetrMenzel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/petrmenzel/32/344555_2.png) [@PetrMenzel](https://forums.plex.tv/u/PetrMenzel)\
**Post date:** [April 1, 2020, 11:53am UTC](https://forums.plex.tv/t/xmltv-code-structure/565163/9 "2020-04-01T11:53:14Z")

</div>

Any one have example of the XML where are links to posters? Or Plex do it itself without XML?

---

<div class="post-metadata">

**Author:** ![PetrMenzel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/petrmenzel/32/344555_2.png) [@PetrMenzel](https://forums.plex.tv/u/PetrMenzel)\
**Post date:** [April 1, 2020, 12:15pm UTC](https://forums.plex.tv/t/xmltv-code-structure/565163/10 "2020-04-01T12:15:09Z")

</div>

How to name series for all who need help:

Episode based  
`<episode-num system="onscreen">S6E16</episode-num>`  
**WORK**

Date based  
`<episode-num system="original-air-date">2018-07-27 09:30:00</episode-num>`  
**WORK**

---

<div class="post-metadata">

**Author:** ![Coxeroni](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/coxeroni/32/21481_2.png) [@Coxeroni](https://forums.plex.tv/u/Coxeroni)\
**Post date:** [April 1, 2020, 12:39pm UTC](https://forums.plex.tv/t/xmltv-code-structure/565163/11 "2020-04-01T12:39:12Z")

</div>

As you wish, anything is possible. Posters come from Plex, no need to supply them (if the show or movie is recognised).

---

<div class="post-metadata">

**Author:** ![PetrMenzel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/petrmenzel/32/344555_2.png) [@PetrMenzel](https://forums.plex.tv/u/PetrMenzel)\
**Post date:** [April 1, 2020, 12:49pm UTC](https://forums.plex.tv/t/xmltv-code-structure/565163/12 "2020-04-01T12:49:59Z")

</div>

Thx its very important information, but nowhere is written. So how is possible that all my posters in TV are missing?

[Screenshot](https://drive.google.com/file/d/1K-3cHIplJSEeD6k4v0Fi0kSV4fVjk18j/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![Coxeroni](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/coxeroni/32/21481_2.png) [@Coxeroni](https://forums.plex.tv/u/Coxeroni)\
**Post date:** [April 1, 2020, 12:54pm UTC](https://forums.plex.tv/t/xmltv-code-structure/565163/13 "2020-04-01T12:54:32Z")

</div>

Maybe because you didn’t check enhanced guide?

---

<div class="post-metadata">

**Author:** ![PetrMenzel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/petrmenzel/32/344555_2.png) [@PetrMenzel](https://forums.plex.tv/u/PetrMenzel)\
**Post date:** [April 1, 2020, 1:01pm UTC](https://forums.plex.tv/t/xmltv-code-structure/565163/14 "2020-04-01T13:01:47Z")

</div>

Its where?

---

<div class="post-metadata">

**Author:** ![Coxeroni](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/coxeroni/32/21481_2.png) [@Coxeroni](https://forums.plex.tv/u/Coxeroni)\
**Post date:** [April 1, 2020, 1:02pm UTC](https://forums.plex.tv/t/xmltv-code-structure/565163/15 "2020-04-01T13:02:26Z")

</div>

Is there anything you can do on your own?

DVR settings

---

<div class="post-metadata">

**Author:** ![PetrMenzel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/petrmenzel/32/344555_2.png) [@PetrMenzel](https://forums.plex.tv/u/PetrMenzel)\
**Post date:** [April 1, 2020, 1:09pm UTC](https://forums.plex.tv/t/xmltv-code-structure/565163/16 "2020-04-01T13:09:24Z")

</div>

Nice, done. But I do not understand why so far I did not need to check this option and now (? probably afters some update) I have to click something. How could I know that its disabled? On the Plex site there is not enough information. **So I have thought long time that poster is part of XML file.**  **POSTER IS NOT PART OF XML FILE, BUT IS DOWNLOADED BY PLEX ITSELF.**

Ok for everyone who miss poster you need go to the:  
`Settings/Live TV & DVR/DVR Settings/Enhanced Guide`  
I hope it will help someone.

---

<div class="post-metadata">

**Author:** ![Coxeroni](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/coxeroni/32/21481_2.png) [@Coxeroni](https://forums.plex.tv/u/Coxeroni)\
**Post date:** [April 1, 2020, 1:12pm UTC](https://forums.plex.tv/t/xmltv-code-structure/565163/17 "2020-04-01T13:12:14Z")

</div>

It has always been like that, maybe you disabled it by accident or did you use the Plex guide before?

---

<div class="post-metadata">

**Author:** ![PetrMenzel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/petrmenzel/32/344555_2.png) [@PetrMenzel](https://forums.plex.tv/u/PetrMenzel)\
**Post date:** [April 1, 2020, 1:13pm UTC](https://forums.plex.tv/t/xmltv-code-structure/565163/18 "2020-04-01T13:13:44Z")

</div>

I am using guide for one year. And now every poster have disappeared.

---

<div class="post-metadata">

**Author:** ![Coxeroni](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/coxeroni/32/21481_2.png) [@Coxeroni](https://forums.plex.tv/u/Coxeroni)\
**Post date:** [April 1, 2020, 1:17pm UTC](https://forums.plex.tv/t/xmltv-code-structure/565163/19 "2020-04-01T13:17:25Z")

</div>

Ok, at least now you know where it comes from 🙂

---

<div class="post-metadata">

**Author:** ![PetrMenzel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/petrmenzel/32/344555_2.png) [@PetrMenzel](https://forums.plex.tv/u/PetrMenzel)\
**Post date:** [April 1, 2020, 1:24pm UTC](https://forums.plex.tv/t/xmltv-code-structure/565163/20 "2020-04-01T13:24:33Z")

</div>

There is last big problem to differ movies and shows. If there is category shows it does not help to determine that it is show and to be sorted as show. You need epised/date info about series and episoded in xml. Its probleblem while you want to record. Show is saved to movie folder and cannot be recorded scheduled. **It must be fixes on xml site.**

[Next page](https://forums.plex.tv/t/xmltv-code-structure/565163.md?page=2)
