mirror of
https://github.com/beetbox/beets.git
synced 2025-12-31 13:02:47 +01:00
style
This commit is contained in:
parent
4d86fd8a7c
commit
e54bf27546
1 changed files with 4 additions and 4 deletions
|
|
@ -295,8 +295,8 @@ def album_info(release):
|
|||
# when the release has more than 500 tracks. So we use browse_recordings
|
||||
# on chunks of tracks to recover the same information in this case.
|
||||
if ntracks > BROWSE_MAXTRACKS:
|
||||
log.info(u'Album '+str(trackid)+u' has too many tracks')
|
||||
log.info(u'Fetching recordings in batches of '+str(BROWSE_CHUNKSIZE))
|
||||
log.info(u'Album ' + str(release['id']) + u' has too many tracks')
|
||||
log.info(u'Fetching recordings in batches of ' + str(BROWSE_CHUNKSIZE))
|
||||
recording_list = []
|
||||
for i in range(0, ntracks, BROWSE_CHUNKSIZE):
|
||||
recording_list.extend(musicbrainzngs.browse_recordings(
|
||||
|
|
@ -542,7 +542,7 @@ def album_for_id(releaseid):
|
|||
try:
|
||||
res = musicbrainzngs.get_release_by_id(albumid,
|
||||
RELEASE_INCLUDES)
|
||||
log.info(u'Album '+str(trackid)+u' fetched from MusicBrainz')
|
||||
log.info(u'Album ' + str(releaseid) + u' fetched from MusicBrainz')
|
||||
except musicbrainzngs.ResponseError:
|
||||
log.debug(u'Album ID match failed.')
|
||||
return None
|
||||
|
|
@ -562,7 +562,7 @@ def track_for_id(releaseid):
|
|||
return
|
||||
try:
|
||||
res = musicbrainzngs.get_recording_by_id(trackid, TRACK_INCLUDES)
|
||||
log.info(u'Track '+str(trackid)+u' fetched from MusicBrainz')
|
||||
log.info(u'Track ' + str(releaseid) + u' fetched from MusicBrainz')
|
||||
except musicbrainzngs.ResponseError:
|
||||
log.debug(u'Track ID match failed.')
|
||||
return None
|
||||
|
|
|
|||
Loading…
Reference in a new issue