aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorMatthew <colethedj@protonmail.com>2021-03-14 22:41:11 +0000
committerGitHub <noreply@github.com>2021-03-15 04:11:11 +0530
commita1c5d2ca6419f199a856bc111ac63b76947768b3 (patch)
treecb3c7786feacf76941bc7135d60869ce23418e06 /yt_dlp/extractor/common.py
parentca87974543e3409a8a2bcd720305a0094ab4cf9a (diff)
downloadhypervideo-pre-a1c5d2ca6419f199a856bc111ac63b76947768b3.tar.lz
hypervideo-pre-a1c5d2ca6419f199a856bc111ac63b76947768b3.tar.xz
hypervideo-pre-a1c5d2ca6419f199a856bc111ac63b76947768b3.zip
[Youtube] Rewrite comment extraction (#167)
Closes #121 TODO: * Add an option for the user to specify newest/popular and max number of comments * Refactor the download code and generalize with TabIE * Parse time_text to timestamp
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index 0b790ac7d..b74a5dc01 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -264,6 +264,7 @@ class InfoExtractor(object):
properties (all but one of text or html optional):
* "author" - human-readable name of the comment author
* "author_id" - user ID of the comment author
+ * "author_thumbnail" - The thumbnail of the comment author
* "id" - Comment ID
* "html" - Comment as HTML
* "text" - Plain text of the comment
@@ -271,6 +272,12 @@ class InfoExtractor(object):
* "parent" - ID of the comment this one is replying to.
Set to "root" to indicate that this is a
comment to the original video.
+ * "like_count" - Number of positive ratings of the comment
+ * "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
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