diff options
author | pukkandan <pukkandan@gmail.com> | 2021-02-28 20:26:08 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-28 20:26:08 +0530 |
commit | 277d6ff5f2bd4f142429def30d01df264eb7c922 (patch) | |
tree | 1ffa4fe83c33aef1f82e1e339cc59c46139ca0ac /yt_dlp/extractor/common.py | |
parent | 1cf376f55a3d9335eb161c07c439ca143d86924e (diff) | |
download | hypervideo-pre-277d6ff5f2bd4f142429def30d01df264eb7c922.tar.lz hypervideo-pre-277d6ff5f2bd4f142429def30d01df264eb7c922.tar.xz hypervideo-pre-277d6ff5f2bd4f142429def30d01df264eb7c922.zip |
Extract comments only when needed #95 (Closes #94)
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r-- | yt_dlp/extractor/common.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index 47b91a00a..3326d436b 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -294,6 +294,14 @@ class InfoExtractor(object): players on other sites. Can be True (=always allowed), False (=never allowed), None (=unknown), or a string specifying the criteria for embedability (Eg: 'whitelist'). + __post_extractor: A function to be called just before the metadata is + written to either disk, logger or console. The function + must return a dict which will be added to the info_dict. + This is usefull for additional information that is + time-consuming to extract. Note that the fields thus + extracted will not be available to output template and + match_filter. So, only "comments" and "comment_count" are + currently allowed to be extracted via this method. The following fields should only be used when the video belongs to some logical chapter or section: |