mirror of
https://github.com/mikf/gallery-dl.git
synced 2025-02-01 03:51:42 +01:00
* use fallback_url for reddit_video to fix issue 3258 * changed to dash_url to include audio * update - use [] instead of .get - catch TypeErrors in case one of the elements is not a dict Co-authored-by: InterruptSpeed <steven@docherty.ca> Co-authored-by: Mike Fährmann <mike_faehrmann@web.de>
This commit is contained in:
parent
0e75358af8
commit
a7c7953107
@ -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"]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user