From fae8fcc932ffbb22f30d334cbe35d3b0850679b5 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Wed, 19 Apr 2017 19:08:15 -0400 Subject: [PATCH] ftintitle: Clarify indexing This can only be a two-element array, so just use the index 1. This matches better with the comments, that say "right-hand side" instead of "the last value in the list." --- beetsplug/ftintitle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/ftintitle.py b/beetsplug/ftintitle.py index 3b1caffe6..1060a2dd8 100644 --- a/beetsplug/ftintitle.py +++ b/beetsplug/ftintitle.py @@ -58,9 +58,9 @@ def find_feat_part(artist, albumartist): # If the last element of the split (the right-hand side of the # album artist) is nonempty, then it probably contains the # featured artist. - elif albumartist_split[-1] != '': + elif albumartist_split[1] != '': # Extract the featured artist from the right-hand side. - _, feat_part = split_on_feat(albumartist_split[-1]) + _, feat_part = split_on_feat(albumartist_split[1]) return feat_part # Otherwise, if there's nothing on the right-hand side, look for a