mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[fd/hls] Fix --hls-split-continuity support (#13321)
				
					
				
			Authored by: tchebb
This commit is contained in:
		| @@ -205,7 +205,7 @@ class HlsFD(FragmentFD): | |||||||
|             line = line.strip() |             line = line.strip() | ||||||
|             if line: |             if line: | ||||||
|                 if not line.startswith('#'): |                 if not line.startswith('#'): | ||||||
|                     if format_index and discontinuity_count != format_index: |                     if format_index is not None and discontinuity_count != format_index: | ||||||
|                         continue |                         continue | ||||||
|                     if ad_frag_next: |                     if ad_frag_next: | ||||||
|                         continue |                         continue | ||||||
| @@ -231,7 +231,7 @@ class HlsFD(FragmentFD): | |||||||
|                         byte_range = {} |                         byte_range = {} | ||||||
| 
 | 
 | ||||||
|                 elif line.startswith('#EXT-X-MAP'): |                 elif line.startswith('#EXT-X-MAP'): | ||||||
|                     if format_index and discontinuity_count != format_index: |                     if format_index is not None and discontinuity_count != format_index: | ||||||
|                         continue |                         continue | ||||||
|                     if frag_index > 0: |                     if frag_index > 0: | ||||||
|                         self.report_error( |                         self.report_error( | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Tom Hebb
					Tom Hebb