From 3338dfce719c999467ffe08fd45663be8190057a Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sun, 4 Dec 2022 23:25:06 -0500 Subject: New upstream version 1.24.1. --- gallery_dl/extractor/reddit.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gallery_dl/extractor/reddit.py') 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"]: -- cgit v1.2.3