[downloader/fragment] remove unused code
authorRemita Amine <remitamine@gmail.com>
Sat, 22 Apr 2017 17:19:47 +0000 (18:19 +0100)
committerRemita Amine <remitamine@gmail.com>
Sat, 22 Apr 2017 17:19:47 +0000 (18:19 +0100)
youtube_dl/downloader/fragment.py
youtube_dl/downloader/ism.py

index 6c02cfc98204a7dcfe79540ec92060ee274e5501..0a3b1ece066a8784a621235118145c01b6154850 100644 (file)
@@ -12,7 +12,6 @@ from ..utils import (
     encodeFilename,
     sanitize_open,
     sanitized_Request,
-    compat_str,
 )
 
 
index 338820e71cf1aa956cddfc4d978d64f07e9ba2fe..5f6f9faefbad62592d699135437ec81add27ae39 100644 (file)
@@ -232,10 +232,6 @@ class IsmFD(FragmentFD):
             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