diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index d245d6a14..4c35d8a2e 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -745,7 +745,9 @@ class Translator(RequestHandler): TRANSLATE_URL = "https://api.cognitive.microsofttranslator.com/translate" LINE_PARTS_RE = re.compile(r"^(\[\d\d:\d\d.\d\d\]|) *(.*)$") SEPARATOR = " | " - remove_translations = partial(re.compile(r" / [^\n]+").sub, "") + remove_translations = staticmethod( + partial(re.compile(r" / [^\n]+").sub, "") + ) _log: Logger api_key: str