Explorar el Código

[downloader/fragment] Remove superfluous whitespace

Sergey M․ hace 9 años
padre
commit
2c2f1efdcd
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      youtube_dl/downloader/fragment.py

+ 1 - 3
youtube_dl/downloader/fragment.py

@@ -79,15 +79,13 @@ class FragmentFD(FileDownloader):
                 return
 
             time_now = time.time()
-
+            state['elapsed'] = time_now - start
             frag_total_bytes = s.get('total_bytes') or 0
-
             if not ctx['live']:
                 estimated_size = (
                     (ctx['complete_frags_downloaded_bytes'] + frag_total_bytes) /
                     (state['frag_index'] + 1) * total_frags)
                 state['total_bytes_estimate'] = estimated_size
-            state['elapsed'] = time_now - start
 
             if s['status'] == 'finished':
                 state['frag_index'] += 1