mirror of
https://github.com/beetbox/beets.git
synced 2026-01-04 15:03:22 +01:00
Fix handling of duplicate album artists in ftintitle
The code that determines the featured artist part of the artist only handles two element lists. When the album artist is duplicated, it splits into a three element list causing no featured artist to be found. This ensures the albumartist_split can ever only have 2 elements. Fixes #1179
This commit is contained in:
parent
a892128996
commit
8c484a273c
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ def ft_in_title(item, drop_feat):
|
|||
|
||||
# Look for the album artist in the artist field. If it's not
|
||||
# present, give up.
|
||||
albumartist_split = artist.split(albumartist)
|
||||
albumartist_split = artist.split(albumartist, 1)
|
||||
if len(albumartist_split) <= 1:
|
||||
ui.print_('album artist not present in artist')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue