mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 20:13:37 +01:00
Tolerate missing AlbumInfo.mediums field
This commit is contained in:
parent
7c6eafa285
commit
6c825970ac
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ def disambig_string(info):
|
|||
|
||||
if isinstance(info, hooks.AlbumInfo):
|
||||
if info.media:
|
||||
if info.mediums > 1:
|
||||
if info.mediums and info.mediums > 1:
|
||||
disambig.append(u'{0}x{1}'.format(
|
||||
info.mediums, info.media
|
||||
))
|
||||
|
|
|
|||
Loading…
Reference in a new issue