aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-10-05 08:34:05 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-10-06 05:45:18 +0530
commit1b6bb4a85a74028111597e1a683914bb33615ef8 (patch)
tree78ca5b920f67148f7c6cf19c877a018a3802f550
parent644149afec99b2db4c1cc1286eb5c753ac187c44 (diff)
downloadhypervideo-pre-1b6bb4a85a74028111597e1a683914bb33615ef8.tar.lz
hypervideo-pre-1b6bb4a85a74028111597e1a683914bb33615ef8.tar.xz
hypervideo-pre-1b6bb4a85a74028111597e1a683914bb33615ef8.zip
[reddit] bugfix for 8e3fd7e034cdd54972d13394821cd9e55e1c3735
-rw-r--r--yt_dlp/extractor/reddit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/reddit.py b/yt_dlp/extractor/reddit.py
index e5a1f6920..c75d95a8e 100644
--- a/yt_dlp/extractor/reddit.py
+++ b/yt_dlp/extractor/reddit.py
@@ -109,7 +109,7 @@ class RedditRIE(InfoExtractor):
self._set_cookie('.reddit.com', 'reddit_session', self._gen_session_id())
self._set_cookie('.reddit.com', '_options', '%7B%22pref_quarantine_optin%22%3A%20true%7D')
- data = self._download_json(f'https://{subdomain}.reddit.com/r/{slug}/.json', video_id, fatal=False)
+ data = self._download_json(f'https://{subdomain}reddit.com/r/{slug}/.json', video_id, fatal=False)
if not data:
# Fall back to old.reddit.com in case the requested subdomain fails
data = self._download_json(f'https://old.reddit.com/r/{slug}/.json', video_id)