A feature-rich command-line audio/video downloader
[extractor/reddit] Add subreddit as `channel_id` (#5685)
George Schizas84e0e33a19ce
diff --git a/yt_dlp/extractor/reddit.py b/yt_dlp/extractor/reddit.pyindex fcfee51e8a..836b3a7aed 100644--- a/yt_dlp/extractor/reddit.py+++ b/yt_dlp/extractor/reddit.py@@ -32,6 +32,7 @@ class RedditIE(InfoExtractor):'dislike_count': int,'comment_count': int,'age_limit': 0,+ 'channel_id': 'videos',},'params': {'skip_download': True,@@ -55,6 +56,7 @@ class RedditIE(InfoExtractor):'dislike_count': int,'comment_count': int,'age_limit': 0,+ 'channel_id': 'aww',},}, {# videos embedded in reddit text post@@ -165,6 +167,7 @@ class RedditIE(InfoExtractor):'thumbnails': thumbnails,'timestamp': float_or_none(data.get('created_utc')),'uploader': data.get('author'),+ 'channel_id': data.get('subreddit'),'like_count': int_or_none(data.get('ups')),'dislike_count': int_or_none(data.get('downs')),'comment_count': int_or_none(data.get('num_comments')),