mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-25 21:59:04 +01:00
[webvtt] Don't parse single fragment files (#9034)
Partially addresses #5804 Authored by: seproDev
This commit is contained in:
parent
811d298b23
commit
f24e44e8cb
1 changed files with 5 additions and 2 deletions
|
@ -369,7 +369,10 @@ class HlsFD(FragmentFD):
|
|||
|
||||
return output.getvalue().encode()
|
||||
|
||||
self.download_and_append_fragments(
|
||||
ctx, fragments, info_dict, pack_func=pack_fragment, finish_func=fin_fragments)
|
||||
if len(fragments) == 1:
|
||||
self.download_and_append_fragments(ctx, fragments, info_dict)
|
||||
else:
|
||||
self.download_and_append_fragments(
|
||||
ctx, fragments, info_dict, pack_func=pack_fragment, finish_func=fin_fragments)
|
||||
else:
|
||||
return self.download_and_append_fragments(ctx, fragments, info_dict)
|
||||
|
|
Loading…
Reference in a new issue