[40] update template variables

pull/935/head
meisnate12 3 years ago
parent 3ec062a5f5
commit 0e98db0644

@ -1 +1 @@
1.17.0-develop39
1.17.0-develop40

@ -136,10 +136,16 @@ class DataFile:
template, temp_vars = self.templates[template_name]
for temp_key, temp_value in temp_vars.items():
variables[temp_key] = temp_value
if temp_value is None:
optional.append(str(temp_key))
else:
variables[temp_key] = temp_value
for temp_key, temp_value in self.temp_vars.items():
variables[temp_key] = temp_value
if temp_value is None:
optional.append(str(temp_key))
else:
variables[temp_key] = temp_value
for key, value in variables.copy().items():
variables[f"{key}_encoded"] = requests.utils.quote(str(value))

@ -149,6 +149,8 @@ class Trakt:
}
logger.secret(token)
response = self.config.get(f"{base_url}/users/settings", headers=headers)
if response.status_code == 423:
raise Failed("Trakt Error: Account is Locked please Contact Trakt Support")
return response.status_code == 200
def _refresh(self):

Loading…
Cancel
Save