From 90873af0bea40f653e8bec7700613f0abd558a3e Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Wed, 5 Jun 2013 20:57:27 -0700 Subject: [PATCH] media comparison: lower-case both sides --- beets/autotag/match.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/autotag/match.py b/beets/autotag/match.py index 707fa2f67..bb00ee862 100644 --- a/beets/autotag/match.py +++ b/beets/autotag/match.py @@ -277,7 +277,7 @@ def distance(items, album_info, mapping): if album_info.media: compare_media = likelies['media'] or \ config['match']['preferred_media'].get() - if compare_media and compare_media != album_info.media: + if compare_media and compare_media.lower() != album_info.media.lower(): dist += weights['media'].as_number() dist_max += weights['media'].as_number()