瀏覽代碼

[downloader/fragment] remove unused code

Remita Amine 8 年之前
父節點
當前提交
4abdba643c
共有 2 個文件被更改,包括 0 次插入5 次删除
  1. 0 1
      youtube_dl/downloader/fragment.py
  2. 0 4
      youtube_dl/downloader/ism.py

+ 0 - 1
youtube_dl/downloader/fragment.py

@@ -12,7 +12,6 @@ from ..utils import (
     encodeFilename,
     sanitize_open,
     sanitized_Request,
-    compat_str,
 )
 
 

+ 0 - 4
youtube_dl/downloader/ism.py

@@ -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