A feature-rich command-line audio/video downloader
[webvtt] Don't parse single fragment files (#9034)
seprof24e44e8cbd8
diff --git a/yt_dlp/downloader/hls.py b/yt_dlp/downloader/hls.pyindex d4b3f03200..4ac5d99dc0 100644--- a/yt_dlp/downloader/hls.py+++ b/yt_dlp/downloader/hls.py@@ -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)