feat: add logger param

This commit is contained in:
Benexl
2025-12-27 19:39:10 +03:00
parent 20ce2f6ca3
commit 6f4155dd65
2 changed files with 2 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ class DownloadParams:
episode_title: str episode_title: str
silent: bool silent: bool
progress_hooks: list[Callable] = field(default_factory=list) progress_hooks: list[Callable] = field(default_factory=list)
logger: object | None = None
vid_format: str = "best" vid_format: str = "best"
force_unknown_ext: bool = False force_unknown_ext: bool = False
verbose: bool = False verbose: bool = False

View File

@@ -91,6 +91,7 @@ class YtDLPDownloader(BaseDownloader):
else tuple(), else tuple(),
"progress_hooks": params.progress_hooks, "progress_hooks": params.progress_hooks,
"nocheckcertificate": params.no_check_certificate, "nocheckcertificate": params.no_check_certificate,
"logger": params.logger,
} }
opts = opts opts = opts
if params.force_ffmpeg or params.hls_use_mpegts or params.hls_use_h264: if params.force_ffmpeg or params.hls_use_mpegts or params.hls_use_h264: