diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-09-01 18:54:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-02 00:24:31 +0530 |
commit | f0e53663350a96eacb9fe273607ae564af57a329 (patch) | |
tree | 9976245382236d3c3f5c5e701be3bb19a9ce26be | |
parent | 49ca8db06bf712ff8ce262039e0c154520ecb874 (diff) | |
download | hypervideo-pre-f0e53663350a96eacb9fe273607ae564af57a329.tar.lz hypervideo-pre-f0e53663350a96eacb9fe273607ae564af57a329.tar.xz hypervideo-pre-f0e53663350a96eacb9fe273607ae564af57a329.zip |
[reddit] Fix for quarantined subreddits (#848)
Authored by: ouwou
-rw-r--r-- | yt_dlp/extractor/reddit.py | 2 |
1 files changed, 2 insertions, 0 deletions
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'] |