From 8bb7243c1020c07108064ba1b950ac941fe0c376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Tue, 10 Oct 2023 18:33:01 +0200 Subject: [PATCH] [reddit] fix wrong previews (#4649) caused by a failed comment URL using the main submission's preview as fallback 14af15bd 4963bb9b --- gallery_dl/extractor/reddit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gallery_dl/extractor/reddit.py b/gallery_dl/extractor/reddit.py index 85533126..cd2ba3d2 100644 --- a/gallery_dl/extractor/reddit.py +++ b/gallery_dl/extractor/reddit.py @@ -125,7 +125,8 @@ class RedditExtractor(Extractor): if match: extra.append(match.group(1)) elif not match_user(url) and not match_subreddit(url): - if previews and "preview" in data: + if previews and "comment" not in data and \ + "preview" in data: data["_fallback"] = self._previews(data) yield Message.Queue, text.unescape(url), data if "_fallback" in data: