projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[downloader/hls] Fix total fragments count when ad fragments exist
[youtube-dl]
/
youtube_dl
/
downloader
/
hls.py
diff --git
a/youtube_dl/downloader/hls.py
b/youtube_dl/downloader/hls.py
index 7955ca510dd200fedb5d8507d937b716d8d56772..1a6e226c89c809acec5a011b943043e7314d2cfd 100644
(file)
--- 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