Chrunos commited on
Commit
88e7701
·
verified ·
1 Parent(s): 6e3953c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)