mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-25 05:00:22 +00:00
bugfix: pass existing filters for albums
method of Artist
(#1347)
* bugfix: pass existing filters for `albums` method of `Artist` * add test for bugfix
This commit is contained in:
parent
ba384e0be5
commit
fe648f6382
2 changed files with 2 additions and 2 deletions
|
@ -227,7 +227,7 @@ class Artist(
|
||||||
""" Returns a list of :class:`~plexapi.audio.Album` objects by the artist. """
|
""" Returns a list of :class:`~plexapi.audio.Album` objects by the artist. """
|
||||||
return self.section().search(
|
return self.section().search(
|
||||||
libtype='album',
|
libtype='album',
|
||||||
filters={'artist.id': self.ratingKey},
|
filters={**kwargs.pop('filters', {}), 'artist.id': self.ratingKey},
|
||||||
**kwargs
|
**kwargs
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ def test_audio_Artist_album(artist):
|
||||||
|
|
||||||
|
|
||||||
def test_audio_Artist_albums(artist):
|
def test_audio_Artist_albums(artist):
|
||||||
albums = artist.albums()
|
albums = artist.albums(filters={})
|
||||||
assert len(albums) == 1 and albums[0].title == "Layers"
|
assert len(albums) == 1 and albums[0].title == "Layers"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue