diff --git a/CHANGELOG.md b/CHANGELOG.md index f895de7..2d46b17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Change log +### 0.1.1 +- Delete failed downloaded files + + ### 0.1.0 - Filename saved is now the original name of the file - key used in cache is different due to changing the file name (this may result in duplicate downloads if you have run the older version) diff --git a/humblebundle_downloader/_version.py b/humblebundle_downloader/_version.py index b794fd4..df9144c 100644 --- a/humblebundle_downloader/_version.py +++ b/humblebundle_downloader/_version.py @@ -1 +1 @@ -__version__ = '0.1.0' +__version__ = '0.1.1' diff --git a/humblebundle_downloader/download_library.py b/humblebundle_downloader/download_library.py index 3a2ec69..052c1ac 100644 --- a/humblebundle_downloader/download_library.py +++ b/humblebundle_downloader/download_library.py @@ -110,7 +110,9 @@ class DownloadLibrary: self._download_file(product_r, local_filename) except (Exception, KeyboardInterrupt) as e: - if self.progress_bar: print() + if self.progress_bar: + # Do not overwrite the progress bar on next print + print() logger.error("Failed to download file {product_title}/{url_filename}" # noqa: E501 .format(product_title=product_title, url_filename=url_filename)) @@ -125,7 +127,9 @@ class DownloadLibrary: continue else: - if self.progress_bar: print() + if self.progress_bar: + # Do not overwrite the progress bar on next print + print() self._update_cache_data(cache_file_key, file_info) finally: