From 5687149225e6cbd2a7a95135029430f2223e308d Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Mon, 13 Mar 2017 20:17:59 +0100 Subject: [PATCH] Fix KeyError for channels if no media streams - Fixes #253 --- resources/lib/entrypoint.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/lib/entrypoint.py b/resources/lib/entrypoint.py index 023745a9..a854fe60 100644 --- a/resources/lib/entrypoint.py +++ b/resources/lib/entrypoint.py @@ -961,7 +961,10 @@ def __build_folder(xml_element, plex_section_id=None): def __build_item(xml_element): api = API(xml_element) listitem = api.CreateListItemFromPlexItem() - api.AddStreamInfo(listitem) + try: + api.AddStreamInfo(listitem) + except: + pass api.set_listitem_artwork(listitem) if (api.getKey().startswith('/system/services') or api.getKey().startswith('http')):