Update app.py
Browse files
app.py
CHANGED
@@ -353,7 +353,7 @@ async def create_spot_dl_link(request: SpotDlRequest = Body(...)):
|
|
353 |
# Check the quality
|
354 |
if request.quality == "128":
|
355 |
# URL-encode the input URL
|
356 |
-
encoded_url = urllib.parse.quote(str(request.url))
|
357 |
# Construct the target URL
|
358 |
output_url = f"https://velynapi.vercel.app/api/downloader/spotifydl?url={encoded_url}"
|
359 |
return SpotDlResponse(download_url=output_url)
|
|
|
353 |
# Check the quality
|
354 |
if request.quality == "128":
|
355 |
# URL-encode the input URL
|
356 |
+
encoded_url = urllib.parse.quote(str(request.url), safe='')
|
357 |
# Construct the target URL
|
358 |
output_url = f"https://velynapi.vercel.app/api/downloader/spotifydl?url={encoded_url}"
|
359 |
return SpotDlResponse(download_url=output_url)
|