mirror of https://github.com/yt-dlp/yt-dlp.git
[downloader/fragment] Make single thread download work for --live-from-start (#3446)
Authored by: Lesmiscore
This commit is contained in:
parent
e06bd8800f
commit
c854208ccf
|
@ -521,8 +521,13 @@ class FragmentFD(FileDownloader):
|
||||||
for fragment in fragments:
|
for fragment in fragments:
|
||||||
if not interrupt_trigger[0]:
|
if not interrupt_trigger[0]:
|
||||||
break
|
break
|
||||||
|
try:
|
||||||
download_fragment(fragment, ctx)
|
download_fragment(fragment, ctx)
|
||||||
result = append_fragment(decrypt_fragment(fragment, self._read_fragment(ctx)), fragment['frag_index'], ctx)
|
result = append_fragment(decrypt_fragment(fragment, self._read_fragment(ctx)), fragment['frag_index'], ctx)
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
if info_dict.get('is_live'):
|
||||||
|
break
|
||||||
|
raise
|
||||||
if not result:
|
if not result:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue