1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-29 21:57:50 +00:00

[downloader/fragment] HLS download can continue without first fragment

Closes #5274
This commit is contained in:
pukkandan
2022-10-18 18:33:00 +05:30
parent 2576d53a31
commit 814bba3933
6 changed files with 30 additions and 34 deletions

View File

@@ -51,7 +51,7 @@ class DashSegmentsFD(FragmentFD):
args.append([ctx, fragments_to_download, fmt])
return self.download_and_append_fragments_multiple(*args)
return self.download_and_append_fragments_multiple(*args, is_fatal=lambda idx: idx == 0)
def _resolve_fragments(self, fragments, ctx):
fragments = fragments(ctx) if callable(fragments) else fragments