1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-06-28 01:18:30 +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: if format_index and discontinuity_count != format_index:
continue continue
if frag_index > 0: if frag_index > 0:
self.report_error( msg = 'Initialization fragment found after media fragments, unable to download'
'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 return False
frag_index += 1 frag_index += 1
map_info = parse_m3u8_attributes(line[11:]) map_info = parse_m3u8_attributes(line[11:])