[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 @@ def _real_extract(self, 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(
url + '/.json', video_id)[0]['data']['children'][0]['data']