mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2026-01-01 15:06:37 +00:00
Lyric optimizations
This commit is contained in:
@@ -76,7 +76,7 @@ class Genius(LyricBase):
|
||||
"""
|
||||
Returns the best matching track's URL from a given query.
|
||||
"""
|
||||
encoded_query = query.replace(" ", "+")
|
||||
encoded_query = urllib.request.quote(query.replace(" ", "+"))
|
||||
search_url = self.base_search_url + encoded_query
|
||||
metadata = self._fetch_search_page(search_url)
|
||||
lyric_url = metadata["response"]["sections"][0]["hits"][0]["result"]["path"]
|
||||
|
||||
Reference in New Issue
Block a user