From f0e53663350a96eacb9fe273607ae564af57a329 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 1 Sep 2021 18:54:31 +0000 Subject: [PATCH] [reddit] Fix for quarantined subreddits (#848) Authored by: ouwou --- yt_dlp/extractor/reddit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yt_dlp/extractor/reddit.py b/yt_dlp/extractor/reddit.py index 2a1b950bd..638f2b6a8 100644 --- a/yt_dlp/extractor/reddit.py +++ b/yt_dlp/extractor/reddit.py @@ -102,6 +102,8 @@ class RedditRIE(InfoExtractor): video_id = self._match_id(url) + self._set_cookie('reddit.com', '_options', '%7B%22pref_quarantine_optin%22%3A%20true%7D') + data = self._download_json( url + '/.json', video_id)[0]['data']['children'][0]['data']