From 8c484a273c4b8de3cf4b8647ad41621dc01c659b Mon Sep 17 00:00:00 2001 From: Marc Addeo Date: Sun, 28 Dec 2014 17:51:48 -0500 Subject: [PATCH] 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 --- beetsplug/ftintitle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/ftintitle.py b/beetsplug/ftintitle.py index 75134ae9c..2e93ad36f 100644 --- a/beetsplug/ftintitle.py +++ b/beetsplug/ftintitle.py @@ -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')