Repository: yt-dlp/yt-dlp

Issue:
YouTube Clips downloads wrong time range
### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I remove or skip any mandatory\* field

### Checklist

- [X] I'm reporting a broken site
- [X] I've verified that I'm running yt-dlp version **2022.10.04** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/yt-dlp/yt-dlp/wiki/FAQ#video-url-contains-an-ampersand--and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [X] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

USA

### Provide a description that is worded well enough to be understood

For all clips on YouTube (e.g. https://www.youtube.com/clip/Ugkx9Kq5CNT8HeAaAXv_vSOj-82F3-FU5pC_) it will not download the correct slice of the video.

yt-dlp will find the right starting time, but then will download the rest of the entire video after that.

I believe it was caused by #4940 

The extractor is getting the correct time ranges, so the problem is in YoutubeDL.py

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
λ yt-dlp -vU https://www.youtube.com/clip/UgkxkHeA5Ae0iS2T3NE-y1MrxfogizNmzqh-
[debug] Command-line config: ['-vU', 'https://www.youtube.com/clip/UgkxkHeA5Ae0iS2T3NE-y1MrxfogizNmzqh-']
[debug] Portable config "C:\Users\idkm2\scoop\apps\yt-dlp\current\yt-dlp.conf": []
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.10.04 [4e0511f] (win32_exe)
[debug] Python 3.8.10 (CPython 64bit) - Windows-10-10.0.19043-SP0
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg N-105236-gebf1d0f4bb-20220109 (setts), ffprobe N-105236-gebf1d0f4bb-20220109
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.09.24, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Loaded 1690 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.10.04, Current version: 2022.10.04
yt-dlp is up to date (2022.10.04)
[debug] [youtube:clip] Extracting URL: https://www.youtube.com/clip/UgkxkHeA5Ae0iS2T3NE-y1MrxfogizNmzqh-
[youtube:clip] UgkxkHeA5Ae0iS2T3NE-y1MrxfogizNmzqh-: Downloading webpage
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=8s2aEpmoJh4
[youtube] 8s2aEpmoJh4: Downloading webpage
[youtube] 8s2aEpmoJh4: Downloading android player API JSON
[debug] Loading youtube-nsig.1f77e565 from cache
[debug] [youtube] Decrypted nsig n42z9fp-cjdFF5O2v1 => JbGCk96Xe55byA
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] UgkxkHeA5Ae0iS2T3NE-y1MrxfogizNmzqh-: Downloading 1 format(s): 303+251
[debug] Invoking ffmpeg downloader on "https://rr4---sn-o097znsd.googlevideo.com/videoplayback?expire=1665900918&ei=Fk1LY43jLqiz0_wProS8iA8&ip=2600%3A1700%3A9770%3A83d0%3Af489%3Abf3b%3Ae0e8%3A2a2e&id=o-AKJtGITQKapCaae0eocEHYKtHk-dLbx0EtrUCqedsHs_&itag=303&source=youtube&requiressl=yes&mh=Fc&mm=31%2C26&mn=sn-o097znsd%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=4&pl=44&initcwndbps=1242500&spc=yR2vp0V6wEInMzv8BcpeyR9aFRlDGzc&vprv=1&svpuc=1&mime=video%2Fwebm&gir=yes&clen=32877906&dur=120.270&lmt=1665359036074715&mt=1665878955&fvip=5&keepalive=yes&fexp=24001373%2C24007246&beids=24277540&c=ANDROID&txp=5535434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAI2Jrf1pNC0Nkzl35otM5ZsEQyAvXtbkO8eojE_uC2EwAiEA8suTAoIp5vM-lI04oGE6sutIFjZ6XHbI-60j61gmqTo%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgeOB-Rm9Vq1_omtBPJOBYLoUobvNV--sZaEDlbHocvIwCIAtKXS2mEVDQqAUgO3MnOLNvFAt5b9_Qb4HWdVbTV2wH", "https://rr4---sn-o097znsd.googlevideo.com/videoplayback?expire=1665900918&ei=Fk1LY43jLqiz0_wProS8iA8&ip=2600%3A1700%3A9770%3A83d0%3Af489%3Abf3b%3Ae0e8%3A2a2e&id=o-AKJtGITQKapCaae0eocEHYKtHk-dLbx0EtrUCqedsHs_&itag=251&source=youtube&requiressl=yes&mh=Fc&mm=31%2C26&mn=sn-o097znsd%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=4&pl=44&initcwndbps=1242500&spc=yR2vp0V6wEInMzv8BcpeyR9aFRlDGzc&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=1717703&dur=120.301&lmt=1665353200221002&mt=1665878955&fvip=5&keepalive=yes&fexp=24001373%2C24007246&beids=24277540&c=ANDROID&txp=5532434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhANWWUYqg_LI6y_5TKdVZQ9dqUOd9DiYKb_OWMlJevbrGAiEAttns9QNQjhz77fiW9KO4qRjoMrWsxbxJCVNijzvt3zo%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgeOB-Rm9Vq1_omtBPJOBYLoUobvNV--sZaEDlbHocvIwCIAtKXS2mEVDQqAUgO3MnOLNvFAt5b9_Qb4HWdVbTV2wH"
[download] Destination: Anderson Silva on Islam Makhachev vs Charles Oliveira [UgkxkHeA5Ae0iS2T3NE-y1MrxfogizNmzqh-].webm
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -headers "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.41 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
" -ss 73.462 -i "https://rr4---sn-o097znsd.googlevideo.com/videoplayback?expire=1665900918&ei=Fk1LY43jLqiz0_wProS8iA8&ip=2600%3A1700%3A9770%3A83d0%3Af489%3Abf3b%3Ae0e8%3A2a2e&id=o-AKJtGITQKapCaae0eocEHYKtHk-dLbx0EtrUCqedsHs_&itag=303&source=youtube&requiressl=yes&mh=Fc&mm=31%2C26&mn=sn-o097znsd%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=4&pl=44&initcwndbps=1242500&spc=yR2vp0V6wEInMzv8BcpeyR9aFRlDGzc&vprv=1&svpuc=1&mime=video%2Fwebm&gir=yes&clen=32877906&dur=120.270&lmt=1665359036074715&mt=1665878955&fvip=5&keepalive=yes&fexp=24001373%2C24007246&beids=24277540&c=ANDROID&txp=5535434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAI2Jrf1pNC0Nkzl35otM5ZsEQyAvXtbkO8eojE_uC2EwAiEA8suTAoIp5vM-lI04oGE6sutIFjZ6XHbI-60j61gmqTo%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgeOB-Rm9Vq1_omtBPJOBYLoUobvNV--sZaEDlbHocvIwCIAtKXS2mEVDQqAUgO3MnOLNvFAt5b9_Qb4HWdVbTV2wH" -headers "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.41 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
" -ss 73.462 -i "https://rr4---sn-o097znsd.googlevideo.com/videoplayback?expire=1665900918&ei=Fk1LY43jLqiz0_wProS8iA8&ip=2600%3A1700%3A9770%3A83d0%3Af489%3Abf3b%3Ae0e8%3A2a2e&id=o-AKJtGITQKapCaae0eocEHYKtHk-dLbx0EtrUCqedsHs_&itag=251&source=youtube&requiressl=yes&mh=Fc&mm=31%2C26&mn=sn-o097znsd%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=4&pl=44&initcwndbps=1242500&spc=yR2vp0V6wEInMzv8BcpeyR9aFRlDGzc&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=1717703&dur=120.301&lmt=1665353200221002&mt=1665878955&fvip=5&keepalive=yes&fexp=24001373%2C24007246&beids=24277540&c=ANDROID&txp=5532434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhANWWUYqg_LI6y_5TKdVZQ9dqUOd9DiYKb_OWMlJevbrGAiEAttns9QNQjhz77fiW9KO4qRjoMrWsxbxJCVNijzvt3zo%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgeOB-Rm9Vq1_omtBPJOBYLoUobvNV--sZaEDlbHocvIwCIAtKXS2mEVDQqAUgO3MnOLNvFAt5b9_Qb4HWdVbTV2wH" -c copy -map "0:0" -map "1:0" -f webm "file:Anderson Silva on Islam Makhachev vs Charles Oliveira [UgkxkHeA5Ae0iS2T3NE-y1MrxfogizNmzqh-].webm.part"
ffmpeg version N-105236-gebf1d0f4bb-20220109 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 11.2.0 (crosstool-NG 1.24.0.498_5075e1f)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --disable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-version=20220109
  libavutil      57. 18.100 / 57. 18.100
  libavcodec     59. 20.100 / 59. 20.100
  libavformat    59. 17.100 / 59. 17.100
  libavdevice    59.  5.100 / 59.  5.100
  libavfilter     8. 25.100 /  8. 25.100
  libswscale      6.  5.100 /  6.  5.100
  libswresample   4.  4.100 /  4.  4.100
  libpostproc    56.  4.100 / 56.  4.100
[tcp @ 00000184b8c96040] Starting connection attempt to 2607:f8b0:4005:11::9 port 443
[tcp @ 00000184b8c96040] Successfully connected to 2607:f8b0:4005:11::9 port 443
[tcp @ 00000184b8d6f280] Starting connection attempt to 2607:f8b0:4005:11::9 port 443
[tcp @ 00000184b8d6f280] Successfully connected to 2607:f8b0:4005:11::9 port 443
Input #0, matroska,webm, from 'https://rr4---sn-o097znsd.googlevideo.com/videoplayback?expire=1665900918&ei=Fk1LY43jLqiz0_wProS8iA8&ip=2600%3A1700%3A9770%3A83d0%3Af489%3Abf3b%3Ae0e8%3A2a2e&id=o-AKJtGITQKapCaae0eocEHYKtHk-dLbx0EtrUCqedsHs_&itag=303&source=youtube&requiressl=yes&mh=Fc&mm=31%2C26&mn=sn-o097znsd%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=4&pl=44&initcwndbps=1242500&spc=yR2vp0V6wEInMzv8BcpeyR9aFRlDGzc&vprv=1&svpuc=1&mime=video%2Fwebm&gir=yes&clen=32877906&dur=120.270&lmt=1665359036074715&mt=1665878955&fvip=5&keepalive=yes&fexp=24001373%2C24007246&beids=24277540&c=ANDROID&txp=5535434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAI2Jrf1pNC0Nkzl35otM5ZsEQyAvXtbkO8eojE_uC2EwAiEA8suTAoIp5vM-lI04oGE6sutIFjZ6XHbI-60j61gmqTo%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgeOB-Rm9Vq1_omtBPJOBYLoUobvNV--sZaEDlbHocvIwCIAtKXS2mEVDQqAUgO3MnOLNvFAt5b9_Qb4HWdVbTV2wH':
  Metadata:
    encoder         : google/video-file
  Duration: 00:02:00.27, start: 0.000000, bitrate: 2186 kb/s
  Stream #0:0(eng): Video: vp9 (Profile 0), 1 reference frame, yuv420p(tv, bt709), 1920x1080, SAR 1:1 DAR 16:9, 59.94 fps, 59.94 tbr, 1k tbn (default)
[tcp @ 00000184b8d6fec0] Starting connection attempt to 2607:f8b0:4005:11::9 port 443
[tcp @ 00000184b8d6fec0] Successfully connected to 2607:f8b0:4005:11::9 port 443
[tcp @ 00000184b74dd5c0] Starting connection attempt to 2607:f8b0:4005:11::9 port 443
[tcp @ 00000184b74dd5c0] Successfully connected to 2607:f8b0:4005:11::9 port 443
Input #1, matroska,webm, from 'https://rr4---sn-o097znsd.googlevideo.com/videoplayback?expire=1665900918&ei=Fk1LY43jLqiz0_wProS8iA8&ip=2600%3A1700%3A9770%3A83d0%3Af489%3Abf3b%3Ae0e8%3A2a2e&id=o-AKJtGITQKapCaae0eocEHYKtHk-dLbx0EtrUCqedsHs_&itag=251&source=youtube&requiressl=yes&mh=Fc&mm=31%2C26&mn=sn-o097znsd%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=4&pl=44&initcwndbps=1242500&spc=yR2vp0V6wEInMzv8BcpeyR9aFRlDGzc&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=1717703&dur=120.301&lmt=1665353200221002&mt=1665878955&fvip=5&keepalive=yes&fexp=24001373%2C24007246&beids=24277540&c=ANDROID&txp=5532434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhANWWUYqg_LI6y_5TKdVZQ9dqUOd9DiYKb_OWMlJevbrGAiEAttns9QNQjhz77fiW9KO4qRjoMrWsxbxJCVNijzvt3zo%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgeOB-Rm9Vq1_omtBPJOBYLoUobvNV--sZaEDlbHocvIwCIAtKXS2mEVDQqAUgO3MnOLNvFAt5b9_Qb4HWdVbTV2wH':
  Metadata:
    encoder         : google/video-file
  Duration: 00:02:00.30, start: -0.007000, bitrate: 114 kb/s
  Stream #1:0(eng): Audio: opus, 48000 Hz, stereo, fltp, delay 312 (default)
Output #0, webm, to 'file:Anderson Silva on Islam Makhachev vs Charles Oliveira [UgkxkHeA5Ae0iS2T3NE-y1MrxfogizNmzqh-].webm.part':
  Metadata:
    encoder         : Lavf59.17.100
  Stream #0:0(eng): Video: vp9 (Profile 0), 1 reference frame, yuv420p(tv, bt709), 1920x1080 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 59.94 fps, 59.94 tbr, 1k tbn (default)
  Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp, delay 312 (default)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
Automatically inserted bitstream filter 'vp9_superframe'; args=''
No more output streams to write to, finishing.e=00:00:45.97 bitrate=2372.0kbits/s speed=1.92x
frame= 2883 fps=119 q=-1.0 Lsize=   13697kB time=00:00:46.81 bitrate=2396.6kbits/s speed=1.93x
video:12972kB audio:687kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.279966%
Input file #0 (https://rr4---sn-o097znsd.googlevideo.com/videoplayback?expire=1665900918&ei=Fk1LY43jLqiz0_wProS8iA8&ip=2600%3A1700%3A9770%3A83d0%3Af489%3Abf3b%3Ae0e8%3A2a2e&id=o-AKJtGITQKapCaae0eocEHYKtHk-dLbx0EtrUCqedsHs_&itag=303&source=youtube&requiressl=yes&mh=Fc&mm=31%2C26&mn=sn-o097znsd%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=4&pl=44&initcwndbps=1242500&spc=yR2vp0V6wEInMzv8BcpeyR9aFRlDGzc&vprv=1&svpuc=1&mime=video%2Fwebm&gir=yes&clen=32877906&dur=120.270&lmt=1665359036074715&mt=1665878955&fvip=5&keepalive=yes&fexp=24001373%2C24007246&beids=24277540&c=ANDROID&txp=5535434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAI2Jrf1pNC0Nkzl35otM5ZsEQyAvXtbkO8eojE_uC2EwAiEA8suTAoIp5vM-lI04oGE6sutIFjZ6XHbI-60j61gmqTo%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgeOB-Rm9Vq1_omtBPJOBYLoUobvNV--sZaEDlbHocvIwCIAtKXS2mEVDQqAUgO3MnOLNvFAt5b9_Qb4HWdVbTV2wH):
  Input stream #0:0 (video): 2883 packets read (13282824 bytes);
  Total: 2883 packets (13282824 bytes) demuxed
Input file #1 (https://rr4---sn-o097znsd.googlevideo.com/videoplayback?expire=1665900918&ei=Fk1LY43jLqiz0_wProS8iA8&ip=2600%3A1700%3A9770%3A83d0%3Af489%3Abf3b%3Ae0e8%3A2a2e&id=o-AKJtGITQKapCaae0eocEHYKtHk-dLbx0EtrUCqedsHs_&itag=251&source=youtube&requiressl=yes&mh=Fc&mm=31%2C26&mn=sn-o097znsd%2Csn-a5mekn6d&ms=au%2Conr&mv=m&mvi=4&pl=44&initcwndbps=1242500&spc=yR2vp0V6wEInMzv8BcpeyR9aFRlDGzc&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=1717703&dur=120.301&lmt=1665353200221002&mt=1665878955&fvip=5&keepalive=yes&fexp=24001373%2C24007246&beids=24277540&c=ANDROID&txp=5532434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhANWWUYqg_LI6y_5TKdVZQ9dqUOd9DiYKb_OWMlJevbrGAiEAttns9QNQjhz77fiW9KO4qRjoMrWsxbxJCVNijzvt3zo%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgeOB-Rm9Vq1_omtBPJOBYLoUobvNV--sZaEDlbHocvIwCIAtKXS2mEVDQqAUgO3MnOLNvFAt5b9_Qb4HWdVbTV2wH):
  Input stream #1:0 (audio): 2514 packets read (703895 bytes);
  Total: 2514 packets (703895 bytes) demuxed
Output file #0 (file:Anderson Silva on Islam Makhachev vs Charles Oliveira [UgkxkHeA5Ae0iS2T3NE-y1MrxfogizNmzqh-].webm.part):
  Output stream #0:0 (video): 2883 packets muxed (13282824 bytes);
  Output stream #0:1 (audio): 2514 packets muxed (703895 bytes);
  Total: 5397 packets (13986719 bytes) muxed
[AVIOContext @ 00000184b8caae00] Statistics: 14026468 bytes written, 2 seeks, 55 writeouts
[AVIOContext @ 00000184b8c96700] Statistics: 13368818 bytes read, 1 seeks
[AVIOContext @ 00000184b9ce8e80] Statistics: 738185 bytes read, 1 seeks
[ffmpeg] Downloaded 14025877 bytes
[download] 100% of   13.38MiB in 00:00:24 at 555.68KiB/s
```



Discussion:

Resolving patch:
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -2720,7 +2720,8 @@ def to_screen(*msg):
                 if chapter or offset:
                     new_info.update({
                         'section_start': offset + chapter.get('start_time', 0),
-                        'section_end': end_time if end_time < offset + duration else None,
+                        # duration may not be accurate. So allow deviations <1sec
+                        'section_end': end_time if end_time <= offset + duration + 1 else None,
                         'section_title': chapter.get('title'),
                         'section_number': chapter.get('index'),
                     })


Test patch: