]> kaliko git repositories - mpd-sima.git/commit
simadb: More consistent use of albumartist info in fetch_albums_history
authorkaliko <kaliko@azylum.org>
Fri, 4 Jun 2021 14:22:09 +0000 (16:22 +0200)
committerkaliko <kaliko@azylum.org>
Fri, 4 Jun 2021 16:42:04 +0000 (18:42 +0200)
commitd81c669fc639184a61c7f9b514d179addbbddf17
treeb050b1a5b6d2c57ea7349112e870841780041191
parent855fe9d3aa88dd8536e954baf3ca5a90389ae921
simadb: More consistent use of albumartist info in fetch_albums_history

fetch_albums_history() returns a list of Album objects with an Artist
attribute set to albumartist (if provided, else falls back to artist).
We want an Album view of history.

fetch_albums_history(needle) returns a list of Album objects with
Artist attribute set to artist (in this case we want album played for
artist == needle). Here we want the artist view on album history.
sima/lib/simadb.py
tests/test_simadb.py