aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/reddit.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2022-12-04 23:25:11 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2022-12-04 23:25:11 -0500
commitb79007bb57b43b0bb5eff4aa8e5e77a782896e10 (patch)
tree42a4b6168cc46f818465a3c25788253b2aa1b1a5 /gallery_dl/extractor/reddit.py
parent9f3eb7898190a9f1e131a523f37e2e53cc6c6d68 (diff)
parent3338dfce719c999467ffe08fd45663be8190057a (diff)
Update upstream source from tag 'upstream/1.24.1'
Update to upstream version '1.24.1' with Debian dir 327715c78291415f1ede99ba69c817d2264b3693
Diffstat (limited to 'gallery_dl/extractor/reddit.py')
-rw-r--r--gallery_dl/extractor/reddit.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/gallery_dl/extractor/reddit.py b/gallery_dl/extractor/reddit.py
index 954a84f..0ec8478 100644
--- a/gallery_dl/extractor/reddit.py
+++ b/gallery_dl/extractor/reddit.py
@@ -69,6 +69,11 @@ class RedditExtractor(Extractor):
submission["_ytdl_extra"] = {
"title": submission["title"],
}
+ try:
+ url = (submission["secure_media"]
+ ["reddit_video"]["dash_url"])
+ except (KeyError, TypeError):
+ pass
yield Message.Url, "ytdl:" + url, submission
elif not submission["is_self"]: