aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/postprocessor/sponskrub.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-06-13 01:32:19 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-06-13 03:45:53 +0530
commit8326b00aabc332cad3edec246fe5353bea069cb0 (patch)
tree286e543dd7b6b447b797ceae8bd8655999f97970 /yt_dlp/postprocessor/sponskrub.py
parentb0249bcaf0f2ac1fafecbf5d44f7403c6f0d5850 (diff)
Allow `images` formats
Necessary for #343. * They are identified by `vcodec=acodec='none'` * These formats show as the worst in `-F` * Any postprocessor that expects audio/video will be skipped * `b*` and all related selectors will skip such formats * This commit also does not add any selector for downloading such formats. They have to be explicitly requested by the `format_id`. Implementation of a selector is left for when #389 is resolved
Diffstat (limited to 'yt_dlp/postprocessor/sponskrub.py')
-rw-r--r--yt_dlp/postprocessor/sponskrub.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/yt_dlp/postprocessor/sponskrub.py b/yt_dlp/postprocessor/sponskrub.py
index 51f841ac4..73b6b4a20 100644
--- a/yt_dlp/postprocessor/sponskrub.py
+++ b/yt_dlp/postprocessor/sponskrub.py
@@ -41,6 +41,7 @@ class SponSkrubPP(PostProcessor):
return None
return path
+ @PostProcessor._restrict_to(images=False)
def run(self, information):
if self.path is None:
return [], information