[downloader/fragment] use the documented names for fragment progress_hooks fields
[youtube-dl] / youtube_dl / downloader / dash.py
index 94a13a5433b7f948623e6a3bc3ccf2dd490b5bba..7491fdad857af2f36433b8991b6208fbd9cef99e 100644 (file)
@@ -28,7 +28,7 @@ class DashSegmentsFD(FragmentFD):
         frag_index = 0
         for i, segment in enumerate(segments):
             frag_index += 1
-            if frag_index <= ctx['frag_index']:
+            if frag_index <= ctx['fragment_index']:
                 continue
             # In DASH, the first segment contains necessary headers to
             # generate a valid MP4 file, so always abort for the first segment