0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-23 02:25:11 +00:00

[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']