mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-27 15:48:28 +00:00
[fd/hls] Fix --hls-split-continuity
support (#13321)
Authored by: tchebb
This commit is contained in:
parent
daa1859be1
commit
57186f958f
@ -205,7 +205,7 @@ def is_ad_fragment_end(s):
|
||||
line = line.strip()
|
||||
if line:
|
||||
if not line.startswith('#'):
|
||||
if format_index and discontinuity_count != format_index:
|
||||
if format_index is not None and discontinuity_count != format_index:
|
||||
continue
|
||||
if ad_frag_next:
|
||||
continue
|
||||
@ -231,7 +231,7 @@ def is_ad_fragment_end(s):
|
||||
byte_range = {}
|
||||
|
||||
elif line.startswith('#EXT-X-MAP'):
|
||||
if format_index and discontinuity_count != format_index:
|
||||
if format_index is not None and discontinuity_count != format_index:
|
||||
continue
|
||||
if frag_index > 0:
|
||||
self.report_error(
|
||||
|
Loading…
Reference in New Issue
Block a user