Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Jan 5, 2025
1 parent 00d0544 commit f600498
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bot/core/config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ruff: noqa: ARG005
# ruff: noqa: ARG005, B023
import contextlib
from logging import getLogger
from os import listdir
Expand Down Expand Up @@ -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

0 comments on commit f600498

Please sign in to comment.