From f36e4b6e65cb8403791aae2f520697115cb88dec Mon Sep 17 00:00:00 2001 From: Simon Sawicki Date: Sat, 22 Mar 2025 00:41:56 +0100 Subject: [cleanup] Misc (#12526) Authored by: Grub4K, seproDev, gamer191, dirkf Co-authored-by: sepro --- yt_dlp/extractor/common.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'yt_dlp/extractor/common.py') diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index b816d788f..011911181 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -2935,8 +2935,7 @@ class InfoExtractor: segment_duration = None if 'total_number' not in representation_ms_info and 'segment_duration' in representation_ms_info: segment_duration = float_or_none(representation_ms_info['segment_duration'], representation_ms_info['timescale']) - representation_ms_info['total_number'] = int(math.ceil( - float_or_none(period_duration, segment_duration, default=0))) + representation_ms_info['total_number'] = math.ceil(float_or_none(period_duration, segment_duration, default=0)) representation_ms_info['fragments'] = [{ media_location_key: media_template % { 'Number': segment_number, -- cgit v1.2.3