mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	Don't download entire video when no matching --download-sections
				
					
				
			This commit is contained in:
		| @@ -3793,6 +3793,9 @@ class download_range_func: | ||||
|         self.chapters, self.ranges = chapters, ranges | ||||
| 
 | ||||
|     def __call__(self, info_dict, ydl): | ||||
|         if not self.ranges and not self.chapters: | ||||
|             yield {} | ||||
| 
 | ||||
|         warning = ('There are no chapters matching the regex' if info_dict.get('chapters') | ||||
|                    else 'Cannot match chapters since chapter information is unavailable') | ||||
|         for regex in self.chapters or []: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan