mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-01-09 17:24:10 +01:00
Always compute last_seq
This commit is contained in:
parent
129555b19a
commit
128d30492b
1 changed files with 2 additions and 2 deletions
|
@ -2831,13 +2831,13 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
should_continue = _extract_sequence_from_mpd(True, no_fragment_score > 15)
|
should_continue = _extract_sequence_from_mpd(True, no_fragment_score > 15)
|
||||||
last_seq = int(re.search(r'(?:/|^)sq/(\d+)', fragments[-1]['path']).group(1))
|
|
||||||
|
|
||||||
no_fragment_score += 2
|
no_fragment_score += 2
|
||||||
if not should_continue:
|
if not should_continue:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
last_fragment = fragments[-1]
|
last_fragment = fragments[-1]
|
||||||
|
last_seq = int(re.search(r'(?:/|^)sq/(\d+)', fragments[-1]['path']).group(1))
|
||||||
|
|
||||||
known_fragment = next(
|
known_fragment = next(
|
||||||
(fragment for fragment in fragments if f'sq/{known_idx}' in fragment['path']), None)
|
(fragment for fragment in fragments if f'sq/{known_idx}' in fragment['path']), None)
|
||||||
if known_fragment and known_fragment['end'] > section_end:
|
if known_fragment and known_fragment['end'] > section_end:
|
||||||
|
|
Loading…
Reference in a new issue