style and legibility

This commit is contained in:
soergeld 2021-01-01 14:56:46 +01:00
parent 52a85cdf18
commit b691a71745

View file

@ -288,9 +288,7 @@ def album_info(release):
artist_name, artist_sort_name, artist_credit_name = \
_flatten_artist_credit(release['artist-credit'])
ntracks = 0
for medium in release['medium-list']:
ntracks += len(medium['track-list'])
ntracks = sum(len(m['track-list']) for m in release['medium-list'])
# The MusicBrainz API omits 'artist-relation-list' and 'work-relation-list'
# when the release has more than 500 tracks. So we use browse_recordings