From af11dedb51efb89458dbdbc8ed5259b020ec95f2 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Tue, 16 Dec 2014 11:53:37 +0000 Subject: [PATCH] More flexible title splitting (#1060) These tokens should not be artist-exclusive. --- beets/util/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beets/util/__init__.py b/beets/util/__init__.py index 188df8cc32..54cf423e19 100644 --- a/beets/util/__init__.py +++ b/beets/util/__init__.py @@ -686,9 +686,9 @@ def feat_tokens(for_artist=True): The `for_artist` option determines whether the regex should be suitable for matching artist fields (the default) or title fields. """ - feat_words = ['ft', 'featuring', 'feat'] + feat_words = ['ft', 'featuring', 'feat', 'feat.', 'ft.'] if for_artist: - feat_words += ['with', 'vs', 'and', 'con', '&', 'feat.', 'ft.'] + feat_words += ['with', 'vs', 'and', 'con', '&'] return '(?<=\s)(?:{0})(?=\s)'.format( '|'.join(re.escape(x) for x in feat_words) )