From 1bd38adbf6637c7eeffc8cf96e8c409f2a73d06c Mon Sep 17 00:00:00 2001 From: biggestsonicfan <9744201+biggestsonicfan@users.noreply.github.com> Date: Tue, 22 Oct 2024 13:45:04 -0700 Subject: [PATCH] [ie/youtube] Add membership data to comments --- yt_dlp/extractor/youtube.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index 5148e8261..65fa53b06 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -3634,6 +3634,8 @@ def _extract_comment(self, entities, parent=None): 'author_thumbnail': ('author', 'avatarThumbnailUrl', {url_or_none}), 'author_is_uploader': ('author', 'isCreator', {bool}), 'author_is_verified': ('author', 'isVerified', {bool}), + 'author_is_member': ('author', 'sponsorBadgeA11y', {str}), + 'author_member_badge': ('author', 'sponsorBadgeUrl', {url_or_none}), 'author_url': ('author', 'channelCommand', 'innertubeCommand', ( ('browseEndpoint', 'canonicalBaseUrl'), ('commandMetadata', 'webCommandMetadata', 'url'), ), {lambda x: urljoin('https://www.youtube.com', x)}),