summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-10-15 11:03:54 +0700
committerSergey M․ <dstftw@gmail.com>2017-10-15 11:03:54 +0700
commita9ee4f6e49a5910b432d0ba4d8dc60231aa7deba (patch)
treea46bfb5ebdb8582c179de8a00191559b822b3cbd
parentaaab8c5e711c773885f67fd53788c89d94d48031 (diff)
downloadyoutube-dl-a9ee4f6e49a5910b432d0ba4d8dc60231aa7deba.tar.gz
youtube-dl-a9ee4f6e49a5910b432d0ba4d8dc60231aa7deba.tar.xz
youtube-dl-a9ee4f6e49a5910b432d0ba4d8dc60231aa7deba.zip
[downloader/hls] Fix total fragments count when ad fragments exist
-rw-r--r--youtube_dl/downloader/hls.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/downloader/hls.py b/youtube_dl/downloader/hls.py
index 7955ca510..1a6e226c8 100644
--- a/youtube_dl/downloader/hls.py
+++ b/youtube_dl/downloader/hls.py
@@ -88,6 +88,7 @@ class HlsFD(FragmentFD):
             if line.startswith('#'):
                 if anvato_ad(line):
                     ad_frags += 1
+                    ad_frag_next = True
                 continue
             if ad_frag_next:
                 ad_frag_next = False