Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -615,7 +615,9 @@ class YouTubeDownloader:
|
|
| 615 |
"Please check if it's private, deleted, age-restricted, or try again with a valid cookies.txt file."
|
| 616 |
)
|
| 617 |
elif "cookies" in error_msg.lower():
|
| 618 |
-
return None, f"❌ Error: {
|
|
|
|
|
|
|
| 619 |
|
| 620 |
|
| 621 |
def download_video(self, url, quality="best", audio_only=False, progress=gr.Progress(), cookiefile=None):
|
|
|
|
| 615 |
"Please check if it's private, deleted, age-restricted, or try again with a valid cookies.txt file."
|
| 616 |
)
|
| 617 |
elif "cookies" in error_msg.lower():
|
| 618 |
+
return None, f"❌ Error: {error_msg}"
|
| 619 |
+
else:
|
| 620 |
+
return None,f"❌ Unexpected error: {error_msg}"
|
| 621 |
|
| 622 |
|
| 623 |
def download_video(self, url, quality="best", audio_only=False, progress=gr.Progress(), cookiefile=None):
|