mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 12:02:41 +01:00
Merge branch 'master' of https://github.com/sampsyo/beets
This commit is contained in:
commit
708d1ab4fb
3 changed files with 4 additions and 2 deletions
|
|
@ -237,7 +237,7 @@ def show_change(cur_artist, cur_album, match):
|
|||
medium = track_info.disc
|
||||
mediums = track_info.disctotal
|
||||
if config['per_disc_numbering']:
|
||||
if mediums > 1:
|
||||
if mediums and mediums > 1:
|
||||
return u'{0}-{1}'.format(medium, medium_index)
|
||||
else:
|
||||
return six.text_type(medium_index or index)
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ class KeyFinderPlugin(BeetsPlugin):
|
|||
self.find_key(lib.items(ui.decargs(args)), write=ui.should_write())
|
||||
|
||||
def imported(self, session, task):
|
||||
self.find_key(task.items)
|
||||
self.find_key(task.imported_items())
|
||||
|
||||
def find_key(self, items, write=False):
|
||||
overwrite = self.config['overwrite'].get(bool)
|
||||
|
|
|
|||
|
|
@ -106,6 +106,8 @@ Fixes:
|
|||
* The importer now supports audio files contained in data tracks when they are
|
||||
listed in MusicBrainz: the corresponding audio tracks are now merged into the
|
||||
main track list. Thanks to :user:`jdetrey`. :bug:`1638`
|
||||
* :doc:`/plugins/keyfinder`: Avoid a crash when trying to process unmatched
|
||||
tracks. :bug:`2537`
|
||||
|
||||
|
||||
For developers:
|
||||
|
|
|
|||
Loading…
Reference in a new issue