aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/reddit.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2026-01-06 04:25:00 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2026-01-06 04:25:00 -0500
commit77589574c157fbf651dd251079cd02f6e282e623 (patch)
tree3765f27e6b5fe6c5050fa952347c686021718606 /gallery_dl/extractor/reddit.py
parentd4b96bc46d493f54e12c06d98115fccaab1b7ed2 (diff)
parent385e4bfb1e426d23417ac788a6f44d639e226c89 (diff)
Update upstream source from tag 'upstream/1.31.2'
Update to upstream version '1.31.2' with Debian dir 4ebe0ca706fc53eceb778881b680572ca5a0231c
Diffstat (limited to 'gallery_dl/extractor/reddit.py')
-rw-r--r--gallery_dl/extractor/reddit.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gallery_dl/extractor/reddit.py b/gallery_dl/extractor/reddit.py
index cc73e47..a8bde87 100644
--- a/gallery_dl/extractor/reddit.py
+++ b/gallery_dl/extractor/reddit.py
@@ -223,10 +223,10 @@ class RedditExtractor(Extractor):
self.log.debug(src)
elif url := data.get("dashUrl"):
submission["_ytdl_manifest"] = "dash"
- yield f"ytdl:{url}"
+ yield "ytdl:" + url
elif url := data.get("hlsUrl"):
submission["_ytdl_manifest"] = "hls"
- yield f"ytdl:{url}"
+ yield "ytdl:" + url
def _extract_video_ytdl(self, submission):
return "https://www.reddit.com" + submission["permalink"]
@@ -506,7 +506,7 @@ class RedditAPI():
return "Bearer " + data["access_token"]
def _call(self, endpoint, params):
- url = f"{self.root}{endpoint}"
+ url = self.root + endpoint
params["raw_json"] = "1"
while True: