Merge pull request #4177 from piu130/master

[Lyrics] Genius uses query param not body
This commit is contained in:
Adrian Sampson 2021-11-30 16:11:11 -05:00 committed by GitHub
commit bc898aadd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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.