mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-12-08 20:39:08 +00:00
Test YouTube track title
This commit is contained in:
@@ -101,10 +101,10 @@ def generate_token():
|
||||
token = creds.get_access_token()
|
||||
return token
|
||||
|
||||
def generate_search_URL(song):
|
||||
def generate_search_url(song):
|
||||
# urllib2.quote() encodes URL with special characters
|
||||
URL = "https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q=" + quote(song)
|
||||
return URL
|
||||
url = "https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q=" + quote(song)
|
||||
return url
|
||||
|
||||
# fix encoding issues in python2
|
||||
def fix_encoding(query):
|
||||
|
||||
Reference in New Issue
Block a user