Browse Source

Fix #162

doc-issue-template
MrS0m30n3 7 years ago
parent
commit
1c163f880b
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl_gui/downloadmanager.py

2
youtube_dl_gui/downloadmanager.py

@ -182,7 +182,7 @@ class DownloadItem(object):
self._set_stage(stats_dict[key]) self._set_stage(stats_dict[key])
if "filesize" in stats_dict: 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 filesize = stats_dict["filesize"].lstrip("~") # HLS downloader etc
self.filesizes.append(to_bytes(filesize)) self.filesizes.append(to_bytes(filesize))

Loading…
Cancel
Save