mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Fix encoding in generateSearchURL (#73)
This commit is contained in:
committed by
Ritiek Malhotra
parent
7f9f13eb1d
commit
120d88a751
@@ -15,6 +15,7 @@ import requests
|
|||||||
import pafy
|
import pafy
|
||||||
import os
|
import os
|
||||||
import argparse
|
import argparse
|
||||||
|
import urllib
|
||||||
|
|
||||||
|
|
||||||
def getInputLink(links):
|
def getInputLink(links):
|
||||||
@@ -63,7 +64,7 @@ def generateMetaTags(raw_song):
|
|||||||
|
|
||||||
def generateSearchURL(song):
|
def generateSearchURL(song):
|
||||||
URL = "https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q=" + \
|
URL = "https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q=" + \
|
||||||
song.replace(" ", "%20")
|
urllib.quote(song)
|
||||||
return URL
|
return URL
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user