We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0ac8e97 + aab2102 commit b586e5bCopy full SHA for b586e5b
1 file changed
rare/shared/workers/fetch.py
@@ -69,8 +69,11 @@ def run_real(self):
69
70
class EntitlementsWorker(FetchWorker):
71
def run_real(self):
72
- mod_time = datetime.fromtimestamp(os.path.getmtime(os.path.join(self.core.lgd.path, 'entitlements.json')))
73
- elapsed_days = abs(datetime.now() - mod_time).days
+ elapsed_days = 99
+ entitlements_json = os.path.join(self.core.lgd.path, 'entitlements.json')
74
+ if os.path.exists(entitlements_json):
75
+ mod_time = datetime.fromtimestamp(os.path.getmtime(entitlements_json))
76
+ elapsed_days = abs(datetime.now() - mod_time).days
77
78
want_entitlements = not self.settings.get_value(app_settings.exclude_entitlements) and elapsed_days > 1
79
want_entitlements = want_entitlements and not self.args.offline
0 commit comments