1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-06-27 17:08:32 +00:00
This commit is contained in:
Tom Hebb 2025-06-17 13:18:53 +03:00 committed by GitHub
commit 0452bdffbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -227,8 +227,10 @@ def is_ad_fragment_end(s):
if format_index and discontinuity_count != format_index:
continue
if frag_index > 0:
self.report_error(
'Initialization fragment found after media fragments, unable to download')
msg = 'Initialization fragment found after media fragments, unable to download'
if format_index is None:
msg += '; if due to discontinuities, try --hls-split-discontinuity'
self.report_error(msg)
return False
frag_index += 1
map_info = parse_m3u8_attributes(line[11:])