A feature-rich command-line audio/video downloader
Fix misleading DRM message
pukkandan7356a4444399
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.pyindex 7ee83ed4ab..0d75640887 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 Noneif 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. '