From 0eaea4d011c1378a7a3f1d058a321161920ee63c Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Fri, 29 Jan 2016 18:38:19 -0800 Subject: [PATCH] Fix empty libraries not added --- plexpy/pmsconnect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plexpy/pmsconnect.py b/plexpy/pmsconnect.py index 2a1a76b0..b31e56e9 100644 --- a/plexpy/pmsconnect.py +++ b/plexpy/pmsconnect.py @@ -1694,8 +1694,8 @@ class PmsConnect(object): section_id = library['section_id'] children_list = self.get_library_children_details(section_id=section_id, section_type=section_type, count='1') - if children_list and children_list['library_count'] != '0': - library_stats = {'section_id': library['section_id'], + if children_list: + library_stats = {'section_id': section_id, 'section_name': library['section_name'], 'section_type': section_type, 'thumb': library['thumb'],