diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a75751..db7535b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Change log +### 0.1.3 +- Fixed re-downloading for real this time + - Only use the url last modified time as the check for new versions + + ### 0.1.2 - Stop using md5 & sha1 hashes to check if file is unique (was creating duplicate downloads of the same file) - Strip periods from end of directory & file names diff --git a/humblebundle_downloader/_version.py b/humblebundle_downloader/_version.py index 10939f0..8ce9b36 100644 --- a/humblebundle_downloader/_version.py +++ b/humblebundle_downloader/_version.py @@ -1 +1 @@ -__version__ = '0.1.2' +__version__ = '0.1.3' diff --git a/humblebundle_downloader/download_library.py b/humblebundle_downloader/download_library.py index c09d300..b80c156 100644 --- a/humblebundle_downloader/download_library.py +++ b/humblebundle_downloader/download_library.py @@ -101,8 +101,6 @@ class DownloadLibrary: # Not sure which value will be best to use, so use them all file_info = { 'url_last_modified': product_r.headers['Last-Modified'], - 'url_etag': product_r.headers['ETag'][1:-1], - 'url_crc': product_r.headers['X-HW-Cache-CRC'], } cache_file_info = self.cache_data.get(cache_file_key, {}) if file_info != cache_file_info: @@ -199,6 +197,10 @@ class DownloadLibrary: del cache_data[key]['md5'] if 'sha1' in value: del cache_data[key]['sha1'] + if 'url_etag' in value: + del cache_data[key]['url_etag'] + if 'url_crc' in value: + del cache_data[key]['url_crc'] return cache_data