mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-01-06 09:43:53 -08:00
feat: add logger param
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user