Cigaras / IPTV.bundle

Plex plug-in that plays live streams (like IPTV) from a M3U playlist
https://forums.plex.tv/discussion/83083
GNU General Public License v3.0
974 stars 290 forks source link

EPG Error #134

Closed eric859 closed 6 years ago

eric859 commented 7 years ago

Got an error with standard install, so I replaced the .pl with the latest updated xmltv_parser.pl that fixed the unicode issue. Using both http link to xml as well as downloaded xml from same link I still get the following error:

2017-06-24 15:17:46,298 (b14) :  CRITICAL (core:574) - Exception in thread named 'GuideReloader' (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-995f1dead\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py", line 1126, in _start_thread
    f(*args, **kwargs)
  File "C:\Users\htpc2\AppData\Local\Plex Media Server\Plug-ins\IPTV.bundle\Contents\Code\xmltv_parser.py", line 123, in GuideReloader
    LoadGuide()
  File "C:\Users\htpc2\AppData\Local\Plex Media Server\Plug-ins\IPTV.bundle\Contents\Code\xmltv_parser.py", line 83, in LoadGuide
    desc = programme.find('desc').text.decode("utf-8")
AttributeError: 'NoneType' object has no attribute 'decode'
eric859 commented 7 years ago

Is a 2.2MB file too big for Plex?

ghost commented 7 years ago

I don't think so

eric859 commented 7 years ago

Then I'm at a loss. The xml file header says UTF-8. It works with all the other software I've been testing with. Just not this one.

ghost commented 7 years ago

I'll check my epg size and let you know what it is , if it's bigger maybe you can try mine to confirm

eric859 commented 7 years ago

Thanks! Let me know. I've attached mine in case you would be able to test it. If not, no problem. xmltv.xml.txt

yurra2 commented 7 years ago

Hi All! Still have the issue on 2.1.6 Using xmltv epg from here http://programtv.ru/xmltv.xml.gz

Cigaras commented 7 years ago

@yurra2, Your issue is fixed by @tylerrichey (0bc3e16e2450017a45ee3f46630d03bbf3a26cd7), latest version 2.1.6 is available in releases section.

However I see Your program guide is quite big, when I try to manually load it in Plex Web client it says that the server is not responding because it takes more time for server to load the xml than client is willing to wait. But server loads the whole xml without issues disregarding the error the client shows. For now I do not have a solution for that client side error message... Maybe I will move manual loading to the background where automatic loading is running now, someday in the future...