From edd6e7f7894440a610c573ff9b93b2c29cf2b9ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Detrey?= Date: Wed, 7 Oct 2015 18:17:53 +0200 Subject: [PATCH] Take the audio tracks in a data track into account. Depends on commit 6ec04e6 of `python-musicbrainzngs'. --- beets/autotag/mb.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/beets/autotag/mb.py b/beets/autotag/mb.py index 8589a62aa..ff267634f 100644 --- a/beets/autotag/mb.py +++ b/beets/autotag/mb.py @@ -217,6 +217,10 @@ def album_info(release): format = medium.get('format') all_tracks = medium['track-list'] + if 'data-track-list' in medium: + all_tracks += medium['data-track-list'] + total = len(all_tracks) + if 'pregap' in medium: all_tracks.insert(0, medium['pregap']) @@ -228,7 +232,7 @@ def album_info(release): index, int(medium['position']), int(track['position']), - len(medium['track-list']), + total, ) ti.disctitle = disctitle ti.media = format