Skip to content

Commit 4938855

Browse files
authored
Fix Artist.album() to return special albums (#896)
1 parent 372e620 commit 4938855

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plexapi/audio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def album(self, title):
180180
Parameters:
181181
title (str): Title of the album to return.
182182
"""
183-
key = '/library/metadata/%s/children' % self.ratingKey
183+
key = f"/library/sections/{self.librarySectionID}/all?artist.id={self.ratingKey}&type=9"
184184
return self.fetchItem(key, Album, title__iexact=title)
185185

186186
def albums(self, **kwargs):

0 commit comments

Comments
 (0)