Skip to content

Commit

Permalink
[reddit] provide 'fallback_url' as video fallback (#5296)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Mar 7, 2024
1 parent d3003f8 commit 1464590
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gallery_dl/extractor/reddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ def _previews(self, post):
try:
if "reddit_video_preview" in post["preview"]:
video = post["preview"]["reddit_video_preview"]
if "fallback_url" in video:
yield video["fallback_url"]
if "dash_url" in video:
yield "ytdl:" + video["dash_url"]
if "hls_url" in video:
Expand Down

0 comments on commit 1464590

Please sign in to comment.