From 3095d815c9c42641a7a211a2982d40b6fea4d4bd Mon Sep 17 00:00:00 2001 From: Mozi <29089388+pzhlkj6612@users.noreply.github.com> Date: Sat, 19 Oct 2024 18:22:53 +0000 Subject: [PATCH] no all() for both things --- yt_dlp/downloader/niconico.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/downloader/niconico.py b/yt_dlp/downloader/niconico.py index e8b0d53423..62bed646f3 100644 --- a/yt_dlp/downloader/niconico.py +++ b/yt_dlp/downloader/niconico.py @@ -190,7 +190,7 @@ def real_download(self, filename, info_dict): total_duration = int(float(line.split(':')[1])) if '#EXT-X-TARGETDURATION' in line: fragment_duration = int(line.split(':')[1]) - if not all({total_duration, fragment_duration}): + if not (total_duration and fragment_duration): raise DownloadError('Unable to get required video info') ctx = {