diff options
author | Simon Sawicki <contact@grub4k.xyz> | 2025-03-22 00:41:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-21 23:41:56 +0000 |
commit | f36e4b6e65cb8403791aae2f520697115cb88dec (patch) | |
tree | c161d5f0a52648e0abca699a02cb9d6897deff45 /yt_dlp/extractor/common.py | |
parent | 983095485c731240aae27c950cb8c24a50827b56 (diff) |
[cleanup] Misc (#12526)
Authored by: Grub4K, seproDev, gamer191, dirkf
Co-authored-by: sepro <sepro@sepr0.com>
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r-- | yt_dlp/extractor/common.py | 3 |
1 files changed, 1 insertions, 2 deletions
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, |