projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09104e9
)
[downloader/fragment] Remove superfluous whitespace
author
Sergey M․
<dstftw@gmail.com>
Sat, 30 Jan 2016 13:30:31 +0000
(19:30 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 30 Jan 2016 13:30:31 +0000
(19:30 +0600)
youtube_dl/downloader/fragment.py
patch
|
blob
|
history
diff --git
a/youtube_dl/downloader/fragment.py
b/youtube_dl/downloader/fragment.py
index e2f34eec69092e96fa799e9ed78482c50779fc57..8b96eceb93fd471f7a1eb18376d8fe73f98021bb 100644
(file)
--- a/
youtube_dl/downloader/fragment.py
+++ b/
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