A feature-rich command-line audio/video downloader
Fix `section_end` of clips
pukkandanbc401608830b
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.pyindex 29a4e0a72d..fc0689882c 100644--- a/yt_dlp/YoutubeDL.py+++ b/yt_dlp/YoutubeDL.py@@ -2619,7 +2619,7 @@ class YoutubeDL:if chapter or offset:new_info.update({'section_start': offset + chapter.get('start_time', 0),- 'section_end': offset + min(chapter.get('end_time', 0), duration),+ 'section_end': offset + min(chapter.get('end_time', duration), duration),'section_title': chapter.get('title'),'section_number': chapter.get('index'),})