mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 00:52:01 +00:00
[webvtt] Don't parse single fragment files (#9034)
Partially addresses #5804 Authored by: seproDev
This commit is contained in:
parent
811d298b23
commit
f24e44e8cb
@ -369,6 +369,9 @@ def fin_fragments():
|
|||||||
|
|
||||||
return output.getvalue().encode()
|
return output.getvalue().encode()
|
||||||
|
|
||||||
|
if len(fragments) == 1:
|
||||||
|
self.download_and_append_fragments(ctx, fragments, info_dict)
|
||||||
|
else:
|
||||||
self.download_and_append_fragments(
|
self.download_and_append_fragments(
|
||||||
ctx, fragments, info_dict, pack_func=pack_fragment, finish_func=fin_fragments)
|
ctx, fragments, info_dict, pack_func=pack_fragment, finish_func=fin_fragments)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user