From f600498e7a13d1a25793f00f02ed74864350fca1 Mon Sep 17 00:00:00 2001 From: 5hojib Date: Mon, 6 Jan 2025 01:23:17 +0600 Subject: [PATCH] update --- bot/core/config_manager.py | 2 +- .../mirror_leech_utils/download_utils/yt_dlp_download.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bot/core/config_manager.py b/bot/core/config_manager.py index 61cc2cad6..818c3ac1d 100644 --- a/bot/core/config_manager.py +++ b/bot/core/config_manager.py @@ -13,7 +13,7 @@ class Config: DEFAULT_UPLOAD = "rc" DOWNLOAD_DIR = "/usr/src/app/downloads/" EXTENSION_FILTER = "" - FFMPEG_CMDS: ClassVar[Dict[str, List[str]]] = {} + FFMPEG_CMDS: ClassVar[dict[str, list[str]]] = {} FILELION_API = "" GDRIVE_ID = "" INCOMPLETE_TASK_NOTIFIER = False diff --git a/bot/helper/mirror_leech_utils/download_utils/yt_dlp_download.py b/bot/helper/mirror_leech_utils/download_utils/yt_dlp_download.py index ee6eadf6c..2c6f2e0a1 100644 --- a/bot/helper/mirror_leech_utils/download_utils/yt_dlp_download.py +++ b/bot/helper/mirror_leech_utils/download_utils/yt_dlp_download.py @@ -1,4 +1,4 @@ -# ruff: noqa: ARG005 +# ruff: noqa: ARG005, B023 import contextlib from logging import getLogger from os import listdir @@ -379,6 +379,6 @@ def _set_options(self, options): self.opts[key].append(value) elif key == "download_ranges": if isinstance(value, list): - self.opts[key] = (lambda v: (lambda info, ytdl: v))(value) + self.opts[key] = lambda info, ytdl: value else: self.opts[key] = value