diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-08-25 02:18:05 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-08-25 10:26:09 +0530 |
commit | e0493e90fc4183a3fee114c2d87d3e2463495984 (patch) | |
tree | 5d88a9d98a30fccdbdf80fa7226040910fb250e4 | |
parent | 1931a55ee8412ee385357f33128996cc3d07560e (diff) | |
download | hypervideo-pre-e0493e90fc4183a3fee114c2d87d3e2463495984.tar.lz hypervideo-pre-e0493e90fc4183a3fee114c2d87d3e2463495984.tar.xz hypervideo-pre-e0493e90fc4183a3fee114c2d87d3e2463495984.zip |
fix bug in 88acdbc2698169e22cdbf358e44765150434c69e
-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 422b26ffe..7da25a7ba 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -2169,9 +2169,9 @@ class YoutubeDL(object): else: formats = info_dict['formats'] + info_dict['__has_drm'] = any(f.get('has_drm') for f in formats) if not self.params.get('allow_unplayable_formats'): formats = [f for f in formats if not f.get('has_drm')] - info_dict['__has_drm'] = len(info_dict.get('formats') or ['']) > len(formats) if not formats: self.raise_no_formats(info_dict) |