Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -441,7 +441,7 @@ class VideoProcessor:
|
|
441 |
'preferredcodec': 'mp3',
|
442 |
'preferredquality': '192',
|
443 |
}],
|
444 |
-
'outtmpl':
|
445 |
'cookiefile': cookie_file_path # Utilisation du fichier de cookies
|
446 |
}
|
447 |
|
@@ -450,7 +450,7 @@ class VideoProcessor:
|
|
450 |
ydl.download([url])
|
451 |
|
452 |
# Retourner le chemin du fichier téléchargé
|
453 |
-
return
|
454 |
except Exception as e:
|
455 |
raise RuntimeError(f"Erreur lors du téléchargement : {str(e)}")
|
456 |
|
|
|
441 |
'preferredcodec': 'mp3',
|
442 |
'preferredquality': '192',
|
443 |
}],
|
444 |
+
'outtmpl': temp_audio_with_cookies.%(ext)s, # Fichier de sortie
|
445 |
'cookiefile': cookie_file_path # Utilisation du fichier de cookies
|
446 |
}
|
447 |
|
|
|
450 |
ydl.download([url])
|
451 |
|
452 |
# Retourner le chemin du fichier téléchargé
|
453 |
+
return 'temp_audio_with_cookies.mp3'
|
454 |
except Exception as e:
|
455 |
raise RuntimeError(f"Erreur lors du téléchargement : {str(e)}")
|
456 |
|