diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-04-29 06:49:57 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-04-29 06:53:36 +0530 |
commit | 0a41f331cc3e06007b8d1abe104da196c565b505 (patch) | |
tree | d3ea93ea2174459d0e813f1e0a5f59c8d64f0bf4 /yt_dlp/YoutubeDL.py | |
parent | e1e1ea54ae8c92b9a796ee103eb20a6b949e437f (diff) | |
download | hypervideo-pre-0a41f331cc3e06007b8d1abe104da196c565b505.tar.lz hypervideo-pre-0a41f331cc3e06007b8d1abe104da196c565b505.tar.xz hypervideo-pre-0a41f331cc3e06007b8d1abe104da196c565b505.zip |
[doc] Minor improvements
Closes #3518, Closes #3560
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r-- | yt_dlp/YoutubeDL.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 78345f87a..2857e9106 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -409,12 +409,14 @@ class YoutubeDL: sleep_interval_subtitles: Number of seconds to sleep before each subtitle download listformats: Print an overview of available video formats and exit. list_thumbnails: Print a table of all thumbnails and exit. - match_filter: A function that gets called with the info_dict of - every video. - If it returns a message, the video is ignored. - If it returns None, the video is downloaded. - If it returns utils.NO_DEFAULT, the user is interactively - asked whether to download the video. + match_filter: A function that gets called for every video with the signature + (info_dict, *, incomplete: bool) -> Optional[str] + For backward compatibility with youtube-dl, the signature + (info_dict) -> Optional[str] is also allowed. + - If it returns a message, the video is ignored. + - If it returns None, the video is downloaded. + - If it returns utils.NO_DEFAULT, the user is interactively + asked whether to download the video. match_filter_func in utils.py is one example for this. no_color: Do not emit color codes in output. geo_bypass: Bypass geographic restriction via faking X-Forwarded-For |