[webvtt] Don't parse single fragment files (#9034)

Partially addresses #5804
Authored by: seproDev
pull/9044/head
sepro 10 months ago committed by GitHub
parent 811d298b23
commit f24e44e8cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -369,6 +369,9 @@ class HlsFD(FragmentFD):
return output.getvalue().encode()
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:

Loading…
Cancel
Save