Ubuntu
commited on
Commit
·
6dba602
1
Parent(s):
133fdc7
add oauth2
Browse files- app.py +1 -1
- requirements.txt +2 -0
app.py
CHANGED
@@ -15,7 +15,7 @@ def download_youtube_audio(url: str, output_dir: Optional[str] = None) -> str:
|
|
15 |
output_dir = tempfile.gettempdir()
|
16 |
|
17 |
yt_dlp_command = [
|
18 |
-
"
|
19 |
"-f", "bestaudio/best",
|
20 |
"-x", # Extract audio
|
21 |
"--audio-format", "mp3",
|
|
|
15 |
output_dir = tempfile.gettempdir()
|
16 |
|
17 |
yt_dlp_command = [
|
18 |
+
"yt-dlp",
|
19 |
"-f", "bestaudio/best",
|
20 |
"-x", # Extract audio
|
21 |
"--audio-format", "mp3",
|
requirements.txt
CHANGED
@@ -1 +1,3 @@
|
|
1 |
yt-dlp
|
|
|
|
|
|
1 |
yt-dlp
|
2 |
+
https://github.com/coletdjnz/yt-dlp-youtube-oauth2/archive/refs/heads/master.zip
|
3 |
+
|