[downloader/fragment] use the documented names for fragment progress_hooks fields
[youtube-dl] / youtube_dl / downloader / hls.py
index 9a87d7ca8983a03cc608b9d19b2712f0f93ce6c4..0e29c8a2ad2559737d8c0210e9c6784310616ec6 100644 (file)
@@ -106,7 +106,7 @@ class HlsFD(FragmentFD):
             if line:
                 if not line.startswith('#'):
                     frag_index += 1
-                    if frag_index <= ctx['frag_index']:
+                    if frag_index <= ctx['fragment_index']:
                         continue
                     frag_url = (
                         line