1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[downloader/hls] Fix total fragments count when ad fragments exist

This commit is contained in:
Sergey M․ 2017-10-15 11:03:54 +07:00
parent aaab8c5e71
commit a9ee4f6e49
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -88,6 +88,7 @@ class HlsFD(FragmentFD):
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