From 0fbe8f313659db7dad4444ca54923653e64820a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dr=2E=20Galambos=20M=C3=A1t=C3=A9?= Date: Mon, 8 Mar 2021 11:59:52 +0100 Subject: [PATCH] Download Trove games with no 'uploaded_at' field. Fixes xtream1101#23 --- humblebundle_downloader/download_library.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/humblebundle_downloader/download_library.py b/humblebundle_downloader/download_library.py index 8f95a11..6d3eb47 100644 --- a/humblebundle_downloader/download_library.py +++ b/humblebundle_downloader/download_library.py @@ -114,8 +114,8 @@ class DownloadLibrary: cache_file_key = 'trove:{name}'.format(name=web_name) file_info = { - 'uploaded_at': download.get('uploaded_at'), - 'md5': download.get('md5'), + 'uploaded_at': download.get('uploaded_at') or download.get('timestamp') or product.get('date_added', '0'), + 'md5': download.get('md5', 'UNKNOWN_MD5'), } cache_file_info = self.cache_data.get(cache_file_key, {})