This commit is contained in:
admin_rb committed 2025-12-21 18:10:43 +01:00
1 parent ebc22d9c3a
commit 76def50a68
30 files changed
+8 -3

No files matched your search

Regular → Executable
+5
View File
@@ -5,10 +5,12 @@
"""
import logging
import os
from enum import Enum
from requests import Response, get, RequestException
from clint.textui import progress
# Set up logging
logging.basicConfig(level=logging.INFO, format="%(levelname)s: %(message)s")
@@ -116,6 +118,9 @@ def download_mp4(mp4_url: str, save_path: str, label: str = "") -> None:
except RequestException as e:
raise NetworkError(f"Failed to start download: {e}")
# Prepare save path
#os.makedirs(save_path, exist_ok=True)
# Download file with progress bar
with open(save_path, "wb") as file:
if total_length: