From 1c163f880bdc00cd1b5eddc3b5480d7f2d9a9f4d Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Wed, 22 Mar 2017 17:24:52 +0200 Subject: [PATCH] Fix #162 --- youtube_dl_gui/downloadmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl_gui/downloadmanager.py b/youtube_dl_gui/downloadmanager.py index 357a2d9..db7cf94 100644 --- a/youtube_dl_gui/downloadmanager.py +++ b/youtube_dl_gui/downloadmanager.py @@ -182,7 +182,7 @@ class DownloadItem(object): self._set_stage(stats_dict[key]) if "filesize" in stats_dict: - if len(self.filesizes) < len(self.filenames): + if stats_dict["percent"] == "100%" and len(self.filesizes) < len(self.filenames): filesize = stats_dict["filesize"].lstrip("~") # HLS downloader etc self.filesizes.append(to_bytes(filesize))