aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/downloader/f4m.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-02-17 21:44:41 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-02-17 21:44:41 +0100
commita91a2c1a83fdd195e850d4ad9c298c01a145ebf0 (patch)
treed523aefea4e4a051d346542d4053abcf227bb5b5 /youtube_dl/downloader/f4m.py
parent5cda4eda7253d766611363a880af46895c11ad17 (diff)
[downloader] Remove various unneeded assignments and imports
Diffstat (limited to 'youtube_dl/downloader/f4m.py')
-rw-r--r--youtube_dl/downloader/f4m.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/youtube_dl/downloader/f4m.py b/youtube_dl/downloader/f4m.py
index 5a1f8e680..b40ebfa50 100644
--- a/youtube_dl/downloader/f4m.py
+++ b/youtube_dl/downloader/f4m.py
@@ -15,7 +15,6 @@ from ..compat import (
from ..utils import (
struct_pack,
struct_unpack,
- format_bytes,
encodeFilename,
sanitize_open,
xpath_text,
@@ -334,10 +333,8 @@ class F4mFD(FileDownloader):
if s['status'] == 'finished':
progress = self.calc_percent(state['frag_index'], total_frags)
- byte_counter = state['downloaded_bytes']
else:
frag_downloaded_bytes = s['downloaded_bytes']
- byte_counter = state['downloaded_bytes'] + frag_downloaded_bytes
frag_progress = self.calc_percent(frag_downloaded_bytes,
frag_total_bytes)
progress = self.calc_percent(state['frag_index'], total_frags)