From f155d3ba752774061cee8d7369fa38f028052fed Mon Sep 17 00:00:00 2001 From: Luke Harder Date: Tue, 22 Nov 2022 20:40:13 -0500 Subject: [PATCH] bug 4406 fix v5 (tests pass again) --- beetsplug/lyrics.py | 4 ++-- test/rsrc/unicode’d.mp3 | Bin 12820 -> 25287 bytes test/test_lyrics.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 8f2cd4ff0..15e02cf4f 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -234,7 +234,7 @@ class Backend: def __init__(self, config, log): self._log = log - self._config = config + self.config = config @staticmethod def _encode(s): @@ -517,7 +517,7 @@ class Tekstowo(Backend): title_dist = string_dist(html_title, title) artist_dist = string_dist(html_artist, artist) - thresh = self._config['dist_thresh'].get(float) + thresh = self.config['dist_thresh'].get(float) if title_dist > thresh or artist_dist > thresh: return None diff --git a/test/rsrc/unicode’d.mp3 b/test/rsrc/unicode’d.mp3 index 47b4ce7c0f19dc59dd281d1706f53955b205cafa..7a145f01e4b3d17c26abd4ad25101d50af8c9229 100644 GIT binary patch delta 887 zcmbP|a{MSGm#2#{3j+`orf=kW!OWDHv-t~i5aZ-J7M{rmSUDyKu<}fv#}a_V76Qw? zW0^L&i)9Z{>fW)aP2RwAWwHWm%4Co}gt;q-(vML845%O3tO%m?4;6Pp{5Fj!Kamp- lknkri%uvmzcbxqK#`Cao=jL}T0nD2P*e)|}w&S>_2>|yEI2!-} delta 54 zcmX?plyOQ5m#2#{3j+`cm~7;F!OX