diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-06-25 00:07:49 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-06-25 00:08:49 +0530 |
commit | bc401608830ba34831c31b74eb5661114bf284e7 (patch) | |
tree | 67d93e59fd2e23171f719ecc92d2b5dc819391a5 | |
parent | 379a4f161d4ad3e40932dcf5aca6e6fb9715ab28 (diff) | |
download | hypervideo-pre-bc401608830ba34831c31b74eb5661114bf284e7.tar.lz hypervideo-pre-bc401608830ba34831c31b74eb5661114bf284e7.tar.xz hypervideo-pre-bc401608830ba34831c31b74eb5661114bf284e7.zip |
Fix `section_end` of clips
Closes #4165
-rw-r--r-- | yt_dlp/YoutubeDL.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 29a4e0a72..fc0689882 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'), }) |