X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=youtube_dl%2Fdownloader%2Fism.py;h=5f6f9faefbad62592d699135437ec81add27ae39;hb=85f6de25e46562f57be4447e9109be964e6515ea;hp=9f0fc36b394a910ad6b31eb21ad638af46808938;hpb=75a24854073e590f4efc9f037b57dee348f52b61;p=youtube-dl.git diff --git a/youtube_dl/downloader/ism.py b/youtube_dl/downloader/ism.py index 9f0fc36b3..5f6f9faef 100644 --- a/youtube_dl/downloader/ism.py +++ b/youtube_dl/downloader/ism.py @@ -227,15 +227,11 @@ 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: try: - success = ctx['dl'].download(target_filename, { - 'url': segment_url, - 'http_headers': info_dict.get('http_headers'), - }) success, frag_content = self._download_fragment(ctx, segment['url'], info_dict) if not success: return False