Skip to content

Commit cd03099

Browse files
committed
bugfix: pass existing filters for album(s) method of Artist
1 parent 46c20a5 commit cd03099

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plexapi/audio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,14 @@ def album(self, title):
220220
return self.section().get(
221221
title=title,
222222
libtype='album',
223-
filters={'artist.id': self.ratingKey}
223+
filters={**kwargs.pop('filters', {}), 'artist.id': self.ratingKey}
224224
)
225225

226226
def albums(self, **kwargs):
227227
""" Returns a list of :class:`~plexapi.audio.Album` objects by the artist. """
228228
return self.section().search(
229229
libtype='album',
230-
filters={'artist.id': self.ratingKey},
230+
filters={**kwargs.pop('filters', {}), 'artist.id': self.ratingKey},
231231
**kwargs
232232
)
233233

0 commit comments

Comments
 (0)