]> jfr.im git - yt-dlp.git/commit - yt_dlp/extractor/youtube.py
[ie/youtube] Calculate more accurate `filesize`
authorpukkandan <redacted>
Sun, 31 Mar 2024 20:50:03 +0000 (02:20 +0530)
committerpukkandan <redacted>
Sun, 31 Mar 2024 23:26:09 +0000 (04:56 +0530)
commita25a424323267e3f6f9f63c0b62df499bd7b8d46
treedae875033a688845f4a69e29553094f85adf20cb
parent86e3b82261e8ebc6c6707c09544c9dfb8907c0fd
[ie/youtube] Calculate more accurate `filesize`

YouTube provides slightly different duration for each format.
Calculating file-size based on this duration instead of the
video duration gives more accurate results.

Ref: https://github.com/yt-dlp/yt-dlp/issues/1400#issuecomment-2007441207
yt_dlp/extractor/youtube.py