no all() for both things

This commit is contained in:
Mozi 2024-10-19 18:22:53 +00:00
parent 06bd726ab3
commit 3095d815c9
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ class NiconicoLiveFD(FragmentFD):
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 = {