mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2026-01-10 03:15:56 +00:00
Sort search results by viewcount
This commit is contained in:
@@ -101,7 +101,7 @@ def generate_token():
|
|||||||
def generate_search_url(song):
|
def generate_search_url(song):
|
||||||
"""Generate YouTube search URL for the given song."""
|
"""Generate YouTube search URL for the given song."""
|
||||||
# urllib.request.quote() encodes URL with special characters
|
# urllib.request.quote() encodes URL with special characters
|
||||||
url = u"https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q={0}".format(
|
url = u"https://www.youtube.com/results?q={0}&sp=CAMSAhABUBQ%253D".format(
|
||||||
quote(song))
|
quote(song))
|
||||||
return url
|
return url
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user