mirror of
https://github.com/beetbox/beets.git
synced 2026-02-02 21:44:22 +01:00
style and legibility
This commit is contained in:
parent
52a85cdf18
commit
b691a71745
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue