mirror of
https://github.com/xtream1101/humblebundle-downloader.git
synced 2025-02-01 19:42:43 +01:00
Not everything has the same hash options. Fixes #4
This commit is contained in:
parent
319d56813d
commit
4fc463bc34
@ -1 +1 @@
|
||||
__version__ = '0.0.4'
|
||||
__version__ = '0.0.5'
|
||||
|
@ -68,8 +68,8 @@ def download_library(cookie_path, library_path, progress_bar=False):
|
||||
logger.debug(f"Item request: {item_r}, Url: {url}")
|
||||
# Not sure which value will be best to use, so use them all
|
||||
file_info = {
|
||||
'md5': file_type['md5'],
|
||||
'sha1': file_type['sha1'],
|
||||
'md5': file_type.get('md5'),
|
||||
'sha1': file_type.get('sha1'),
|
||||
'url_last_modified': item_r.headers['Last-Modified'],
|
||||
'url_etag': item_r.headers['ETag'][1:-1],
|
||||
'url_crc': item_r.headers['X-HW-Cache-CRC'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user