[downloader/fragment] use the documented names for fragment progress_hooks fields
[youtube-dl] / youtube_dl / downloader / ism.py
index 9f0fc36b394a910ad6b31eb21ad638af46808938..338820e71cf1aa956cddfc4d978d64f07e9ba2fe 100644 (file)
@@ -227,7 +227,7 @@ class IsmFD(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
             count = 0
             while count <= fragment_retries: