diff --git a/StreamingCommunity/Lib/Downloader/MP4/downloader.py b/StreamingCommunity/Lib/Downloader/MP4/downloader.py index f69c033..65a910b 100644 --- a/StreamingCommunity/Lib/Downloader/MP4/downloader.py +++ b/StreamingCommunity/Lib/Downloader/MP4/downloader.py @@ -21,7 +21,7 @@ from rich.panel import Panel from StreamingCommunity.Util.headers import get_userAgent from StreamingCommunity.Util.color import Colors from StreamingCommunity.Util.config_json import config_manager -from StreamingCommunity.Util.os import internet_manager +from StreamingCommunity.Util.os import internet_manager, os_manager from StreamingCommunity.TelegramHelp.telegram_bot import get_bot_instance @@ -80,6 +80,7 @@ def MP4_downloader(url: str, path: str, referer: str = None, headers_: dict = No bot = get_bot_instance() console.log("####") + path = os_manager.get_sanitize_path(path) if os.path.exists(path): console.log("[red]Output file already exists.") if TELEGRAM_BOT: