[reddit] use '"videos": "dash"' by default (#8657)
https://github.com/mikf/gallery-dl/issues/8657#issuecomment-3663560902
This commit is contained in:
@@ -5218,7 +5218,7 @@ Type
|
|||||||
* ``bool``
|
* ``bool``
|
||||||
* ``string``
|
* ``string``
|
||||||
Default
|
Default
|
||||||
``true``
|
``"dash"``
|
||||||
Description
|
Description
|
||||||
Control video download behavior.
|
Control video download behavior.
|
||||||
|
|
||||||
|
|||||||
@@ -694,7 +694,7 @@
|
|||||||
"previews" : true,
|
"previews" : true,
|
||||||
"recursion" : 0,
|
"recursion" : 0,
|
||||||
"selftext" : null,
|
"selftext" : null,
|
||||||
"videos" : true
|
"videos" : "dash"
|
||||||
},
|
},
|
||||||
"redgifs":
|
"redgifs":
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,11 +33,11 @@ class RedditExtractor(Extractor):
|
|||||||
previews = self.config("previews", True)
|
previews = self.config("previews", True)
|
||||||
embeds = self.config("embeds", True)
|
embeds = self.config("embeds", True)
|
||||||
|
|
||||||
if videos := self.config("videos", True):
|
if videos := self.config("videos", "dash"):
|
||||||
if videos == "ytdl":
|
if videos == "dash":
|
||||||
self._extract_video = self._extract_video_ytdl
|
|
||||||
elif videos == "dash":
|
|
||||||
self._extract_video = self._extract_video_dash
|
self._extract_video = self._extract_video_dash
|
||||||
|
elif videos == "ytdl":
|
||||||
|
self._extract_video = self._extract_video_ytdl
|
||||||
videos = True
|
videos = True
|
||||||
|
|
||||||
selftext = self.config("selftext")
|
selftext = self.config("selftext")
|
||||||
|
|||||||
Reference in New Issue
Block a user