Fix `section_end` of clips

Closes #4165
pull/4181/head
pukkandan 3 years ago
parent 379a4f161d
commit bc40160883
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

@ -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'),
})

Loading…
Cancel
Save