From 717d38f38c5c70475240ed333d7133ffba8aa605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 17 Dec 2025 18:45:06 +0100 Subject: [PATCH] [reddit] use '"videos": "dash"' by default (#8657) https://github.com/mikf/gallery-dl/issues/8657#issuecomment-3663560902 --- docs/configuration.rst | 2 +- docs/gallery-dl.conf | 2 +- gallery_dl/extractor/reddit.py | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/configuration.rst b/docs/configuration.rst index 8355c660..55defb77 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -5218,7 +5218,7 @@ Type * ``bool`` * ``string`` Default - ``true`` + ``"dash"`` Description Control video download behavior. diff --git a/docs/gallery-dl.conf b/docs/gallery-dl.conf index cb07d575..25eea53b 100644 --- a/docs/gallery-dl.conf +++ b/docs/gallery-dl.conf @@ -694,7 +694,7 @@ "previews" : true, "recursion" : 0, "selftext" : null, - "videos" : true + "videos" : "dash" }, "redgifs": { diff --git a/gallery_dl/extractor/reddit.py b/gallery_dl/extractor/reddit.py index ee1af7b7..cc73e474 100644 --- a/gallery_dl/extractor/reddit.py +++ b/gallery_dl/extractor/reddit.py @@ -33,11 +33,11 @@ class RedditExtractor(Extractor): previews = self.config("previews", True) embeds = self.config("embeds", True) - if videos := self.config("videos", True): - if videos == "ytdl": - self._extract_video = self._extract_video_ytdl - elif videos == "dash": + if videos := self.config("videos", "dash"): + if videos == "dash": self._extract_video = self._extract_video_dash + elif videos == "ytdl": + self._extract_video = self._extract_video_ytdl videos = True selftext = self.config("selftext")