Skip to content

Commit 8e30301

Browse files
authored
Return all albums with Artist.albums() (#884)
1 parent 73f8607 commit 8e30301

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
@@ -177,7 +177,7 @@ def album(self, title):
177177

178178
def albums(self, **kwargs):
179179
""" Returns a list of :class:`~plexapi.audio.Album` objects by the artist. """
180-
key = '/library/metadata/%s/children' % self.ratingKey
180+
key = f"/library/sections/{self.librarySectionID}/all?artist.id={self.ratingKey}&type=9"
181181
return self.fetchItems(key, Album, **kwargs)
182182

183183
def track(self, title=None, album=None, track=None):

0 commit comments

Comments
 (0)