aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorcoletdjnz <coletdjnz@protonmail.com>2023-06-01 20:43:32 +1200
committerGitHub <noreply@github.com>2023-06-01 08:43:32 +0000
commitc35448b7b14113b35c4415dbfbf488c4731f006f (patch)
tree5829b64ed469973ca133013224c1ca1d7da229cb /yt_dlp/extractor/common.py
parent1c16d9df5330819cc79ad588b24aa5b72765c168 (diff)
downloadhypervideo-pre-c35448b7b14113b35c4415dbfbf488c4731f006f.tar.lz
hypervideo-pre-c35448b7b14113b35c4415dbfbf488c4731f006f.tar.xz
hypervideo-pre-c35448b7b14113b35c4415dbfbf488c4731f006f.zip
[extractor/youtube] Extract more metadata for comments (#7179)
Adds new comment fields: * `author_url` - The url to the comment author's page * `author_is_verified` - Whether the author is verified on the platform * `is_pinned` - Whether the comment is pinned to the top of the comments Closes https://github.com/yt-dlp/yt-dlp/issues/5411 Authored by: coletdjnz
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index 306911a6c..fa46a5240 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -314,6 +314,11 @@ class InfoExtractor:
* "author" - human-readable name of the comment author
* "author_id" - user ID of the comment author
* "author_thumbnail" - The thumbnail of the comment author
+ * "author_url" - The url to the comment author's page
+ * "author_is_verified" - Whether the author is verified
+ on the platform
+ * "author_is_uploader" - Whether the comment is made by
+ the video uploader
* "id" - Comment ID
* "html" - Comment as HTML
* "text" - Plain text of the comment
@@ -325,8 +330,8 @@ class InfoExtractor:
* "dislike_count" - Number of negative ratings of the comment
* "is_favorited" - Whether the comment is marked as
favorite by the video uploader
- * "author_is_uploader" - Whether the comment is made by
- the video uploader
+ * "is_pinned" - Whether the comment is pinned to
+ the top of the comments
age_limit: Age restriction for the video, as an integer (years)
webpage_url: The URL to the video webpage, if given to yt-dlp it
should allow to get the same result again. (It will be set