Update app.py
Browse files
app.py
CHANGED
|
@@ -68,9 +68,11 @@ def download_audio_youtube(url, output_path="audio.wav", cookies_path=None):
|
|
| 68 |
formats = f"\u26a0\ufe0f Could not list formats due to: {format_err}"
|
| 69 |
|
| 70 |
raise RuntimeError(
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
|
|
|
|
|
|
| 74 |
|
| 75 |
return extract_audio_from_video(fallback_video_path, audio_path=output_path)
|
| 76 |
|
|
|
|
| 68 |
formats = f"\u26a0\ufe0f Could not list formats due to: {format_err}"
|
| 69 |
|
| 70 |
raise RuntimeError(
|
| 71 |
+
"\u26a0\ufe0f Could not download this YouTube video due to restrictions. "
|
| 72 |
+
"Please use this alternative tool to extract the transcript manually:\n\n"
|
| 73 |
+
f"https://youtubetotranscript.com/transcript?v={video_id}¤t_language_code=en"
|
| 74 |
+
)
|
| 75 |
+
|
| 76 |
|
| 77 |
return extract_audio_from_video(fallback_video_path, audio_path=output_path)
|
| 78 |
|