Chrunos commited on
Commit
390c953
·
verified ·
1 Parent(s): bd7e531

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -35,7 +35,9 @@ DEEZER_API_URL = "https://api.deezer.com"
35
  # Base URL for the server
36
  BASE_URL = "https://chrunos-depot.hf.space"
37
 
38
-
 
 
39
 
40
  # Spotify credentials from environment variables
41
  SPOTIFY_USERNAME = os.getenv("SPOTIFY_USERNAME")
@@ -147,9 +149,6 @@ def download_track(request: DownloadRequest):
147
  try:
148
  url = request.url
149
  quality = request.quality
150
- # Deezer ARL token (required for deezspot downloads)
151
- ARL_TOKEN = os.getenv('ARL')
152
- dl = DeeLogin(arl=ARL_TOKEN)
153
 
154
  if quality not in ["MP3_320", "MP3_128", "FLAC"]:
155
  raise HTTPException(status_code=400, detail="Invalid quality specified")
 
35
  # Base URL for the server
36
  BASE_URL = "https://chrunos-depot.hf.space"
37
 
38
+ # Deezer ARL token (required for deezspot downloads)
39
+ ARL_TOKEN = os.getenv('ARL')
40
+ dl = DeeLogin(arl=ARL_TOKEN)
41
 
42
  # Spotify credentials from environment variables
43
  SPOTIFY_USERNAME = os.getenv("SPOTIFY_USERNAME")
 
149
  try:
150
  url = request.url
151
  quality = request.quality
 
 
 
152
 
153
  if quality not in ["MP3_320", "MP3_128", "FLAC"]:
154
  raise HTTPException(status_code=400, detail="Invalid quality specified")