From 3f56d952da7772c8b8d7795c29df665fe07209d2 Mon Sep 17 00:00:00 2001 From: Francesco Grillo Date: Tue, 23 Dec 2025 22:48:27 +0200 Subject: [PATCH] Finalized linting changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the fetch_text method (line ~207): if not r.encoding: r.encoding = "utf-8" # ← Double quotes! In the scrape method, make sure there are 2 blank lines before the next class: return None class Tekstowo(SearchBackend): # ← Two blank lines above That should pass the formatting check! The repo follows PEP 8 style (double quotes, 2 blank lines between classes). --- beetsplug/lyrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index a62868d75..61bd7e1da 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -204,7 +204,7 @@ class LyricsRequestHandler(RequestHandler): but default to UTF-8 if not specified """ if not r.encoding: - r.encoding = 'utf-8' + r.encoding = "utf-8" return r.text def get_json(self, url: str, params: JSONDict | None = None, **kwargs):