Update app.py
Browse files
app.py
CHANGED
|
@@ -47,10 +47,7 @@ async def cleanup_file(filepath: Path):
|
|
| 47 |
logging.error(f"Error during cleanup of {filepath.parent}: {e}")
|
| 48 |
|
| 49 |
"""def get_best_formats_with_fallback(data: dict, requested_quality: int):
|
| 50 |
-
|
| 51 |
-
Parses the Info API response to find the best matching video format
|
| 52 |
-
with a robust fallback, and the best audio format.
|
| 53 |
-
"""
|
| 54 |
if "formats" not in data:
|
| 55 |
raise ValueError("The 'formats' key is missing from the Info API response.")
|
| 56 |
|
|
|
|
| 47 |
logging.error(f"Error during cleanup of {filepath.parent}: {e}")
|
| 48 |
|
| 49 |
"""def get_best_formats_with_fallback(data: dict, requested_quality: int):
|
| 50 |
+
|
|
|
|
|
|
|
|
|
|
| 51 |
if "formats" not in data:
|
| 52 |
raise ValueError("The 'formats' key is missing from the Info API response.")
|
| 53 |
|