From 69fe1d1bafc02112912fa1bf8b68fa04f8d9691a Mon Sep 17 00:00:00 2001 From: Ramon Boss Date: Tue, 30 Nov 2021 20:10:56 +0100 Subject: [PATCH 1/2] fix: use query param for genius search --- beetsplug/lyrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 2cb50ca5e..7d026def1 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -377,7 +377,7 @@ class Genius(Backend): data = {'q': title + " " + artist.lower()} try: response = requests.get( - search_url, data=data, headers=self.headers) + search_url, params=data, headers=self.headers) except requests.RequestException as exc: self._log.debug('Genius API request failed: {0}', exc) return None From 78c95413dde3d3fda75265da43ea33f0864935d1 Mon Sep 17 00:00:00 2001 From: Ramon Boss Date: Tue, 30 Nov 2021 20:17:46 +0100 Subject: [PATCH 2/2] doc: add changelog entry for genius lyrics fix --- docs/changelog.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index b6eb5ca3a..8dc14aa97 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -6,6 +6,10 @@ Changelog Changelog goes here! +Bug fixes: + +* :doc:`/plugins/lyrics`: Fix Genius search by using query params instead of body. + For packagers: * We fixed a version for the dependency on the `Confuse`_ library.