1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-24 08:58:53 +00:00
Files
yt-dlp/yt_dlp
Thomas Hebb 9373402408 [fd/hls] Fix format_index=0 parsing with --hls-split-discontinuity
When treating each discontinuity as a separate format, this code should
only consider items within the requested discontinuity. But when the
requested discontinuity has index 0, it currently considers everything
because 0 is not truthy.

Fix the issue by explicitly checking for non-`None` `format_index`,
which indicates that `--hls-split-discontinuity` was passed.

Fixes: 310c2ed2c6 ("Better support HLS media discontinuity and fully support media initialization (#105)")
2025-05-27 18:25:06 -04:00
..
2025-03-21 23:41:56 +00:00
2024-03-11 00:48:47 +05:30
2025-03-21 23:41:56 +00:00
2025-04-19 22:08:34 +02:00
2025-04-30 23:01:25 +00:00
2025-04-30 23:24:48 +00:00