diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-08-02 20:29:09 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-08-02 20:29:09 +0530 |
commit | 7356a44443995d83c59b915186b6a719769eab60 (patch) | |
tree | 43de0601c03f9709a4d726b57098f982b4e79df2 | |
parent | a0c830f488170db9007979da0ba13ebf9ebad5b1 (diff) | |
download | hypervideo-pre-7356a44443995d83c59b915186b6a719769eab60.tar.lz hypervideo-pre-7356a44443995d83c59b915186b6a719769eab60.tar.xz hypervideo-pre-7356a44443995d83c59b915186b6a719769eab60.zip |
Fix misleading DRM message
Closes #4534
-rw-r--r-- | yt_dlp/YoutubeDL.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 7ee83ed4a..0d7564088 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -2488,7 +2488,7 @@ class YoutubeDL: info_dict['_has_drm'] = any(f.get('has_drm') for f in formats) or None if not self.params.get('allow_unplayable_formats'): formats = [f for f in formats if not f.get('has_drm')] - if info_dict['_has_drm'] and all( + if info_dict['_has_drm'] and formats and all( f.get('acodec') == f.get('vcodec') == 'none' for f in formats): self.report_warning( 'This video is DRM protected and only images are available for download. ' |