[reddit] Fix for quarantined subreddits (#848)

Authored by: ouwou
This commit is contained in:
ouwou 2021-09-01 18:54:31 +00:00 committed by GitHub
parent 49ca8db06b
commit f0e5366335
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,6 +102,8 @@ class RedditRIE(InfoExtractor):
video_id = self._match_id(url) video_id = self._match_id(url)
self._set_cookie('reddit.com', '_options', '%7B%22pref_quarantine_optin%22%3A%20true%7D')
data = self._download_json( data = self._download_json(
url + '/.json', video_id)[0]['data']['children'][0]['data'] url + '/.json', video_id)[0]['data']['children'][0]['data']