[downloader/hls] Fix total fragments count when ad fragments exist
authorSergey M․ <dstftw@gmail.com>
Sun, 15 Oct 2017 04:03:54 +0000 (11:03 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 15 Oct 2017 04:03:54 +0000 (11:03 +0700)
youtube_dl/downloader/hls.py

index 7955ca510dd200fedb5d8507d937b716d8d56772..1a6e226c89c809acec5a011b943043e7314d2cfd 100644 (file)
@@ -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