mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[webvtt] Don't parse single fragment files (#9034)
Partially addresses #5804 Authored by: seproDev
This commit is contained in:
		| @@ -369,7 +369,10 @@ class HlsFD(FragmentFD): | |||||||
| 
 | 
 | ||||||
|                 return output.getvalue().encode() |                 return output.getvalue().encode() | ||||||
| 
 | 
 | ||||||
|             self.download_and_append_fragments( |             if len(fragments) == 1: | ||||||
|                 ctx, fragments, info_dict, pack_func=pack_fragment, finish_func=fin_fragments) |                 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: |         else: | ||||||
|             return self.download_and_append_fragments(ctx, fragments, info_dict) |             return self.download_and_append_fragments(ctx, fragments, info_dict) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 sepro
					sepro