mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-05-01 21:16:13 +00:00
no all() for both things
This commit is contained in:
parent
06bd726ab3
commit
3095d815c9
@ -190,7 +190,7 @@ class NiconicoLiveFD(FragmentFD):
|
|||||||
total_duration = int(float(line.split(':')[1]))
|
total_duration = int(float(line.split(':')[1]))
|
||||||
if '#EXT-X-TARGETDURATION' in line:
|
if '#EXT-X-TARGETDURATION' in line:
|
||||||
fragment_duration = int(line.split(':')[1])
|
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')
|
raise DownloadError('Unable to get required video info')
|
||||||
|
|
||||||
ctx = {
|
ctx = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user