Update utils/audio_processing.py
Browse files
utils/audio_processing.py
CHANGED
@@ -25,9 +25,9 @@ def download_audio_as_wav(url, max_filesize_mb=70):
|
|
25 |
max_bytes = max_filesize_mb * 1024 * 1024
|
26 |
output_template = os.path.join(temp_dir, "audio.%(ext)s")
|
27 |
|
28 |
-
cookies_b64 = os.getenv("
|
29 |
if not cookies_b64:
|
30 |
-
raise EnvironmentError("
|
31 |
|
32 |
# Decode and write cookies.txt
|
33 |
with open(temp_cookie_path, "wb") as f:
|
|
|
25 |
max_bytes = max_filesize_mb * 1024 * 1024
|
26 |
output_template = os.path.join(temp_dir, "audio.%(ext)s")
|
27 |
|
28 |
+
cookies_b64 = os.getenv("cookies")
|
29 |
if not cookies_b64:
|
30 |
+
raise EnvironmentError("cookies environment variable not set.")
|
31 |
|
32 |
# Decode and write cookies.txt
|
33 |
with open(temp_cookie_path, "wb") as f:
|