瀏覽代碼

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

Sergey M․ 8 年之前
父節點
當前提交
a9ee4f6e49
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      youtube_dl/downloader/hls.py

+ 1 - 0
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