From 8114079eacda0588f9ac9b1083d067a876634e98 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Thu, 11 Aug 2022 09:46:15 -0700 Subject: [PATCH] Fix album count showing 0 --- plexpy/pmsconnect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/pmsconnect.py b/plexpy/pmsconnect.py index 45597b18..7149836d 100644 --- a/plexpy/pmsconnect.py +++ b/plexpy/pmsconnect.py @@ -2740,7 +2740,7 @@ class PmsConnect(object): return [] elif str(section_id).isdigit() or section_type == 'album': - if section_type == 'album': + if section_type == 'album' and rating_key: sort_type += '&artist.id=' + str(rating_key) xml_head = self.fetch_library_list(