Repository navigation
nightly-ab4bdfd5-ls3
Pre-releaseCI
LinuxServer changes
Full Changelog: nightly-fd101acc-ls2...nightly-ab4bdfd5-ls3
Upstream changes
Source: beetbox/beets@ab4bdfd
lastgenre: Album stage fall back to multi-valued albumartists (#6893)
Description
Fixes: #6238
If last.fm returns no album genres for albumartist, fall back to
querying the album against each artist in albumartists (falling
through to the artist stage if that also yields nothing.)
The album stage reasoning is now slightly more complex and was moved to
its own helper method.
Additional refactor
Streamline the wording of albumartist to always be so (an not as
before in some places album artist, to improve readability of log
messages.
A new test_get_genre_album() parametrized pytest was introduced since
the original test_get_genre() only every tests with items. Squeezing
in album support into the original test felt overly complex, so a
separate parametrized pytest was choosen as the cleaner option and will
come in handy in future testing endeavors too.
Also the fake fetching for those two test methods was now moved to a new
function mock_lastfm() which better mimics what the last.fm fetcher
can deliver. Therefore all test_get_genre parametrized case were
required to adapt.
To Do
- Documentation.
- Changelog.
- Tests.