mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 09:07:58 +01:00
[downloader/hls] Fix total fragments count when ad fragments exist
This commit is contained in:
parent
aaab8c5e71
commit
a9ee4f6e49
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ def anvato_ad(s):
|
||||||
if line.startswith('#'):
|
if line.startswith('#'):
|
||||||
if anvato_ad(line):
|
if anvato_ad(line):
|
||||||
ad_frags += 1
|
ad_frags += 1
|
||||||
|
ad_frag_next = True
|
||||||
continue
|
continue
|
||||||
if ad_frag_next:
|
if ad_frag_next:
|
||||||
ad_frag_next = False
|
ad_frag_next = False
|
||||||
|
|
Loading…
Reference in a new issue