Jump to content

LiveTV Guide Parsing Configuration


Recommended Posts

Posted

Need a way to help Emby parse EPG guides.

I have an EPG that has season and episode info, but apparently in a way that Emby does not understand.

A way to "train" Emby to understand an EPG format would be a great plus.

Posted

Hi there, how is it formatted in the epg?

  • 2 weeks later...
Posted (edited)
On 1/7/2023 at 12:07 PM, Luke said:

Hi there, how is it formatted in the epg?

At first I thought it was something strange about the xml coming from xTeVe, that Emby needed to be "trained" on...  But that doesn't appear to be the case.

It seems that Emby won't pick up the episode information from any xml file I've tried (?)

xTeVe, and the others I have tried separately, put them in the following tag:   `<episode-num system="onscreen">S04E09</episode-num>`


I have access to one .xml that I have been able to modify to put the episode information into the <sub-title> tag, along with the original information in the tag (Example: `<sub-title lang="">S04E09 I Shrink Therefore I Am</sub-title>`).  Then Emby will pick up on which episode it is.

But obviously that won't work for any .xml files I don't have access to during creation.

Edited by UCM_1
Posted

The onscreen episode number system is something that is not meant to be parsed. Is that the only place in this xml where that information is?

Posted (edited)
7 hours ago, Luke said:

The onscreen episode number system is something that is not meant to be parsed. Is that the only place in this xml where that information is?

When episode identifier information is available:

xTeVe, in at least the 2.2 and the fork 2.5.3 versions, only exports it in those tags (at least with the input sources I have for it).

The output from the Pluto-for-channels scripts only shows episode numbers in that tag.

It appears that every xml at https://i.mjh.nz/ has the episode identifiers in that tag.

In many that I've looked at on https://github.com/iptv-org/epg the episode info is only shown in that tag.

 

Meant to be parsed or not, it appears to be a very common way (and only way) it is done in many xml sources.

 

Edited by UCM_1
Posted
16 hours ago, UCM_1 said:

When episode identifier information is available:

xTeVe, in at least the 2.2 and the fork 2.5.3 versions, only exports it in those tags (at least with the input sources I have for it).

The output from the Pluto-for-channels scripts only shows episode numbers in that tag.

It appears that every xml at https://i.mjh.nz/ has the episode identifiers in that tag.

In many that I've looked at on https://github.com/iptv-org/epg the episode info is only shown in that tag.

 

Meant to be parsed or not, it appears to be a very common way (and only way) it is done in many xml sources.

 

I followed your second link and that epg provides it in two formats:

<episode-num system="xmltv_ns">0.15.0/1</episode-num>
<episode-num system="onscreen">S01E16</episode-num>

The first one is meant to be parsed and we do support reading that.

Posted (edited)
36 minutes ago, Luke said:

I followed your second link and that epg provides it in two formats:

<episode-num system="xmltv_ns">0.15.0/1</episode-num>
<episode-num system="onscreen">S01E16</episode-num>

The first one is meant to be parsed and we do support reading that.

I'm not sure what you mean by followed my second link?

If you mean "https://github.com/iptv-org/epg", there are many epg's on that page.  And I said that "many [of them]" at that link only provide the "onscreen" episode-num tag.

There are some that do exactly what you said.  But there are also many that do not include it anywhere but in the "onscreen" tag.  And yet others that actually only put it in the title tag.

If Emby already catches it in the title tag (or at least does if put in the sub-title tag), why not have it catch it in the episode-num "onscreen" tag as well?

Maybe it isn't the "official" tag to have that information in, but it is done that way.
 

So why not catch it in that tag when it is available there?

 

Edited by UCM_1
Posted (edited)

.

Edited by UCM_1
Posted
8 hours ago, UCM_1 said:

And more reason why Emby should take episode information anywhere it can find it, and not just where it "officially" should be.

Hi.  That would undoubtedly lead to many problems of mis-identification. 

Posted (edited)
2 hours ago, ebr said:

Hi.  That would undoubtedly lead to many problems of mis-identification. 

How often will a "SXXEXX" actually show up in an "onscreen" tag, or even in a title/sub-title tag, when it isn't intended for letting you know what episode it actually is?

Sure, it could happen, but not very likely.  And, as it is, when the "xmltv_ns" tag isn't available, Emby is currently technically misidentifying 100% of the time.

 

So, when the "xmltv_ns" tag isn't available, checking for a "SXXEXX" can only result in a better accuracy.

Edited by UCM_1
  • 2 weeks later...
Posted
On 1/18/2023 at 8:16 AM, UCM_1 said:

How often will a "SXXEXX" actually show up in an "onscreen" tag, or even in a title/sub-title tag, when it isn't intended for letting you know what episode it actually is?

Sure, it could happen, but not very likely.  And, as it is, when the "xmltv_ns" tag isn't available, Emby is currently technically misidentifying 100% of the time.

 

So, when the "xmltv_ns" tag isn't available, checking for a "SXXEXX" can only result in a better accuracy.

We can try it out and see how it goes.

  • 3 weeks later...
Posted

Can you try this version of the xmltv plugin and let me know how things compare? You'll need to refresh guide data after installing it. Thanks.

Emby.XmlTV.zip

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...