mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[ModifyChapters] Modify duration in infodict
This commit is contained in:
		| @@ -38,8 +38,9 @@ class ModifyChaptersPP(FFmpegPostProcessor): | |||||||
|         if not cuts: |         if not cuts: | ||||||
|             return [], info |             return [], info | ||||||
| 
 | 
 | ||||||
|         if self._duration_mismatch(real_duration, info.get('duration'), 1): |         original_duration, info['duration'] = info.get('duration'), info['chapters'][-1]['end_time'] | ||||||
|             if not self._duration_mismatch(real_duration, info['chapters'][-1]['end_time']): |         if self._duration_mismatch(real_duration, original_duration, 1): | ||||||
|  |             if not self._duration_mismatch(real_duration, info['duration']): | ||||||
|                 self.to_screen(f'Skipping {self.pp_key()} since the video appears to be already cut') |                 self.to_screen(f'Skipping {self.pp_key()} since the video appears to be already cut') | ||||||
|                 return [], info |                 return [], info | ||||||
|             if not info.get('__real_download'): |             if not info.get('__real_download'): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan