UCM_1 10 Posted January 7, 2023 Posted January 7, 2023 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.
UCM_1 10 Posted January 16, 2023 Author Posted January 16, 2023 (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 January 16, 2023 by UCM_1
Luke 42078 Posted January 16, 2023 Posted January 16, 2023 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?
UCM_1 10 Posted January 17, 2023 Author Posted January 17, 2023 (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 January 17, 2023 by UCM_1
Luke 42078 Posted January 17, 2023 Posted January 17, 2023 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.
UCM_1 10 Posted January 17, 2023 Author Posted January 17, 2023 (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 January 17, 2023 by UCM_1
UCM_1 10 Posted January 18, 2023 Author Posted January 18, 2023 (edited) . Edited January 18, 2023 by UCM_1
ebr 16184 Posted January 18, 2023 Posted January 18, 2023 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.
UCM_1 10 Posted January 18, 2023 Author Posted January 18, 2023 (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 January 18, 2023 by UCM_1
Luke 42078 Posted January 30, 2023 Posted January 30, 2023 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.
Luke 42078 Posted February 15, 2023 Posted February 15, 2023 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
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