From a9ee4f6e49a5910b432d0ba4d8dc60231aa7deba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergey=20M=E2=80=A4?= Date: Sun, 15 Oct 2017 11:03:54 +0700 Subject: [PATCH] [downloader/hls] Fix total fragments count when ad fragments exist --- youtube_dl/downloader/hls.py | 1 + 1 file changed, 1 insertion(+) 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 -- 2.22.2