Commit
·
725e2f6
1
Parent(s):
03986eb
change comment of donwload_audio method
Browse files
main.py
CHANGED
@@ -72,7 +72,9 @@ class ProcessRequest(BaseModel):
|
|
72 |
|
73 |
def download_audio_bytes(youtube_url: str) -> bytes:
|
74 |
|
75 |
-
|
|
|
|
|
76 |
|
77 |
print(f"Attempting to download audio for: {youtube_url}")
|
78 |
ydl_opts = {
|
|
|
72 |
|
73 |
def download_audio_bytes(youtube_url: str) -> bytes:
|
74 |
|
75 |
+
"""
|
76 |
+
Downloads the best audio-only format from a YouTube URL using yt-dlp and returns the raw audio data as bytes.
|
77 |
+
"""
|
78 |
|
79 |
print(f"Attempting to download audio for: {youtube_url}")
|
80 |
ydl_opts = {
|