mirror of
https://github.com/xtream1101/humblebundle-downloader.git
synced 2024-11-20 08:49:17 +01:00
Actually fix the re-download bug
This commit is contained in:
parent
92440de1f7
commit
925a68dae9
@ -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
|
||||
|
@ -1 +1 @@
|
||||
__version__ = '0.1.2'
|
||||
__version__ = '0.1.3'
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user