chmod
This commit is contained in:
1 parent
ebc22d9c3a
commit
76def50a68
30 files changed
+8
-3
No files matched your search
Regular → Executable
File mode changed.
Regular → Executable
BIN
Binary file not shown.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
+5
@@ -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:
|
||||
|
||||
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Reference in new issue
Block a user