mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-07-22 18:08:58 +00:00
[fd/hls] Fix crash on empty fragment lists in tests (#17218)
Authored by: doe1080
This commit is contained in:
parent
d9813a3da6
commit
aefce1eea4
@ -300,7 +300,7 @@ class HlsFD(FragmentFD):
|
|||||||
|
|
||||||
# We only download the first fragment during the test
|
# We only download the first fragment during the test
|
||||||
if self.params.get('test', False):
|
if self.params.get('test', False):
|
||||||
fragments = [fragments[0] if fragments else None]
|
fragments = fragments[:1]
|
||||||
|
|
||||||
if real_downloader:
|
if real_downloader:
|
||||||
info_dict['fragments'] = fragments
|
info_dict['fragments'] = fragments
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user