Jump to content


Photo

Emby + xtream-editor EPG (xml does not work)

epg xtream-editor xml error 4.0.2

  • Please log in to reply
14 replies to this topic

#1 xanthos84 OFFLINE  

xanthos84

    Member

  • Members
  • 27 posts
  • Local time: 12:36 PM

Posted 19 January 2019 - 06:25 AM

hi,

using emby 4.0.2

and using the xtream-editor service to sort my M3U + XML (EPG) from them.

But emby is not able to get the XML correct,

 

Error Log:

2019-01-19 09:21:02.886 Info App: xmltv path: https://xtream-edito...m/en/get/epg/ID
2019-01-19 09:21:02.886 Info App: Downloading xmltv listings from https://xtream-edito...m/en/get/epg/ID
2019-01-19 09:21:02.886 Info HttpClient: GetTempFileResponse url: https://xtream-edito...m/en/get/epg/ID
2019-01-19 09:21:04.067 Error App: Error adding metadata
    *** Error Report ***
    Version: 4.0.0.2
    Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
    Operating system: Unix 4.4.59.0
    64-Bit OS: True
    64-Bit Process: True
    User Interactive: True
    Processor count: 2
    Program data path: /config
    Application directory: /system
    System.Xml.XmlException: System.Xml.XmlException: Root element is missing.
     at System.Xml.XmlTextReaderImpl.Throw(Exception e)
     at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
     at System.Xml.XmlTextReaderImpl.Read()
     at System.Xml.XmlReader.ReadToDescendant(String name)
     at Emby.XmlTv.Classes.XmlTvReader.GetChannels()
     at Emby.LiveTV.Listings.XmlTv.XmlTvProvider.GetChannels(ListingsProviderInfo info, CancellationToken cancellationToken)
     at Emby.LiveTV.EmbyTV.GetEpgChannels(IListingsProvider provider, ListingsProviderInfo info, Boolean enableCache, CancellationToken cancellationToken)
     at Emby.LiveTV.EmbyTV.AddMetadata(IListingsProvider provider, ListingsProviderInfo info, List`1 tunerChannels, Boolean enableCache, CancellationToken cancellationToken)
     at Emby.LiveTV.EmbyTV.GetChannelsAsync(Boolean enableCache, CancellationToken cancellationToken)
    Source: System.Private.Xml
    TargetSite: Void Throw(System.Exception)
     at System.Xml.XmlTextReaderImpl.Throw(Exception e)
     at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
     at System.Xml.XmlTextReaderImpl.Read()
     at System.Xml.XmlReader.ReadToDescendant(String name)
     at Emby.XmlTv.Classes.XmlTvReader.GetChannels()
     at Emby.LiveTV.Listings.XmlTv.XmlTvProvider.GetChannels(ListingsProviderInfo info, CancellationToken cancellationToken)
     at Emby.LiveTV.EmbyTV.GetEpgChannels(IListingsProvider provider, ListingsProviderInfo info, Boolean enableCache, CancellationToken cancellationToken)
     at Emby.LiveTV.EmbyTV.AddMetadata(IListingsProvider provider, ListingsProviderInfo info, List`1 tunerChannels, Boolean enableCache, CancellationToken cancellationToken)
     at Emby.LiveTV.EmbyTV.GetChannelsAsync(Boolean enableCache, CancellationToken cancellationToken)
    



#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 140284 posts
  • Local time: 05:36 AM

Posted 19 January 2019 - 11:59 AM

Looks like invalid XML.

#3 thefarmer OFFLINE  

thefarmer

    Member

  • Members
  • 25 posts
  • Local time: 11:36 AM

Posted 20 January 2019 - 08:18 AM

Looks like invalid XML.

Hi..

 

i have the same issue...

so when you say 'invalid xml'...what do you mean exactly?  Could you advise as to what we should be doing our end to try and resolve?

 

Thnx.



#4 xanthos84 OFFLINE  

xanthos84

    Member

  • Members
  • 27 posts
  • Local time: 12:36 PM

Posted 20 January 2019 - 08:30 AM

its not a invalid xml... its a xml.gz file - and on my side I have build a workaround to extract the gz first so its a final xml,

and this xml emby can load without any issues.

 

but as said, i have to do this everytime i load into emby



#5 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 140284 posts
  • Local time: 05:36 AM

Posted 20 January 2019 - 01:27 PM

It's being looked into, thanks.



#6 matty87a OFFLINE  

matty87a

    Advanced Member

  • Members
  • 43 posts
  • Local time: 11:36 AM

Posted 21 January 2019 - 07:21 AM

Hi,

 

I just have Emby set to lookup a local xml file for guide data and run this script on a cronjob to keep it up to date:

 

# Automated EPG Grab for Emby from Xtream Editor
# Grab Latest XML ### USER AGENT SPOOFING IS TO CIRCUMVENT CURL/WGET BLOCKAGE ###
echo Downloading Latest XML File
wget --user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0" http://xtream-editor.com/en/get/epg/actualurlremoved -O guide.gz
gzip -d guide.gz
mv guide guide.xml
echo Import of EPG Data Complete

Hope it helps



#7 raven7558 OFFLINE  

raven7558

    Newbie

  • Members
  • 1 posts
  • Local time: 12:36 PM

Posted 22 February 2019 - 06:41 PM

Hi,

 

I just have Emby set to lookup a local xml file for guide data and run this script on a cronjob to keep it up to date:

 

# Automated EPG Grab for Emby from Xtream Editor
# Grab Latest XML ### USER AGENT SPOOFING IS TO CIRCUMVENT CURL/WGET BLOCKAGE ###
echo Downloading Latest XML File
wget --user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0" http://xtream-editor.com/en/get/epg/actualurlremoved -O guide.gz
gzip -d guide.gz
mv guide guide.xml
echo Import of EPG Data Complete

Hope it helps

 

This is exactly what I was looking for! Works a charm!

Thank you so much for posting this!


  • matty87a likes this

#8 matty87a OFFLINE  

matty87a

    Advanced Member

  • Members
  • 43 posts
  • Local time: 11:36 AM

Posted 19 March 2019 - 08:58 AM

Just in case anyone else stumbles across this - I've since found that Emby can now handle gz guide data well, so you can set the epg as the xtream-editor epg url and set the user agent as below to:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0

This seems to work much quicker than the local xml import



#9 hshah OFFLINE  

hshah

    Advanced Member

  • Members
  • 109 posts
  • Local time: 11:36 AM

Posted 02 April 2019 - 06:30 AM

Just in case anyone else stumbles across this - I've since found that Emby can now handle gz guide data well, so you can set the epg as the xtream-editor epg url and set the user agent as below to:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0

This seems to work much quicker than the local xml import

 

 

It still doesn't seem to work for me :(

2019-04-02 11:28:17.506 Info HttpClient: GetTempFileResponse url: https://xtream-editor.com/en/get/epg/XXXXXXXXXXX
2019-04-02 11:28:17.718 Error App: Error adding metadata
	*** Error Report ***
	Version: 4.1.0.18
	Command line: C:\Users\XXXXXXXXXXX\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
	Operating system: Microsoft Windows NT 6.2.9200.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Processor count: 12
	Program data path: C:\Users\XXXXXXXXXXX\AppData\Roaming\Emby-Server\programdata
	Application directory: C:\Users\XXXXXXXXXXX\AppData\Roaming\Emby-Server\system
	System.Xml.XmlException: System.Xml.XmlException: Root element is missing.
	   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
	   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
	   at System.Xml.XmlTextReaderImpl.Read()
	   at System.Xml.XmlReader.ReadToDescendant(String name)
	   at Emby.XmlTv.Classes.XmlTvReader.GetChannels()
	   at Emby.LiveTV.Listings.XmlTv.XmlTvProvider.GetChannels(ListingsProviderInfo info, CancellationToken cancellationToken)
	   at Emby.LiveTV.EmbyTV.GetEpgChannels(IListingsProvider provider, ListingsProviderInfo info, Boolean enableCache, CancellationToken cancellationToken)
	   at Emby.LiveTV.EmbyTV.AddMetadata(IListingsProvider provider, ListingsProviderInfo info, List`1 tunerChannels, Boolean enableCache, CancellationToken cancellationToken)
	   at Emby.LiveTV.EmbyTV.GetChannelsAsync(Boolean enableCache, CancellationToken cancellationToken)
	Source: System.Private.Xml
	TargetSite: Void Throw(System.Exception)

/Edit: Can't remember where I actually read about this, but I just removed the S from HTTPS and that seems to have sorted the issue :)


Edited by hshah, 02 April 2019 - 06:46 AM.

  • mark-in-dallas likes this

#10 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 140284 posts
  • Local time: 05:36 AM

Posted 02 April 2019 - 01:34 PM

Interesting, thanks for the info.



#11 mark-in-dallas OFFLINE  

mark-in-dallas

    Advanced Member

  • Members
  • 53 posts
  • Local time: 05:36 AM

Posted 06 May 2019 - 11:57 AM

 

/Edit: Can't remember where I actually read about this, but I just removed the S from HTTPS and that seems to have sorted the issue :)

 

I could not the get xstream-editor EPG link to work either, but changing the https:// to http:// worked like a charm for me as well.  Thank You!

 

I also tried it with and without the the user agent string, and it works either way.


  • hshah likes this

#12 Westiewill OFFLINE  

Westiewill

    Advanced Member

  • Members
  • 46 posts
  • Local time: 11:36 AM

Posted 10 May 2019 - 06:36 PM

anyone get this working w/ emby?  I cant get it to work, tried all the suggestions in this thread with no luck.

 

(xtream-editor + emby)



#13 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 140284 posts
  • Local time: 05:36 AM

Posted 11 May 2019 - 12:49 AM

anyone get this working w/ emby?  I cant get it to work, tried all the suggestions in this thread with no luck.

 

(xtream-editor + emby)

 

Can you please describe the issue that you're having? Thanks.



#14 Westiewill OFFLINE  

Westiewill

    Advanced Member

  • Members
  • 46 posts
  • Local time: 11:36 AM

Posted 11 May 2019 - 04:15 AM

I was able to fix it, I think I triggered some thing on the api on the IPTV provider and it blocked me for a bit. All good now.

Sent from my Pixel 2 using Tapatalk

#15 kikinjo OFFLINE  

kikinjo

    Advanced Member

  • Members
  • 268 posts
  • Local time: 11:36 AM

Posted 11 May 2019 - 05:39 AM

Xtream edtior does not allow epg downloads from any client, they are checking for useragent. I have cron job to dowload it localy and than use emby to pickup .gz file. I use firefox user agent spoofed in wget command.

Also they have daily limit of epg dowloads also, think its 50 times.







Also tagged with one or more of these keywords: epg, xtream-editor, xml, error, 4.0.2

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users