We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77dffd5 commit ec141dbCopy full SHA for ec141db
beetsplug/lyrics.py
@@ -745,7 +745,9 @@ class Translator(RequestHandler):
745
TRANSLATE_URL = "https://api.cognitive.microsofttranslator.com/translate"
746
LINE_PARTS_RE = re.compile(r"^(\[\d\d:\d\d.\d\d\]|) *(.*)$")
747
SEPARATOR = " | "
748
- remove_translations = partial(re.compile(r" / [^\n]+").sub, "")
+ remove_translations = staticmethod(
749
+ partial(re.compile(r" / [^\n]+").sub, "")
750
+ )
751
752
_log: Logger
753
api_key: str
0 commit comments