Commit 43baedf8 authored by echel0n's avatar echel0n

Fixed saving of provider settings so that booleans are saved as integers

parent 7fe35834
# Changelog
- * 12bdfa7 - 2019-03-04: Release v9.4.79
- * 99865c0 - 2019-03-05: Fixed saving of provider settings so that booleans are saved as integers
- * 4f0d739 - 2019-03-04: Release v9.4.79
- * 1ff280d - 2019-03-04: Added code for database restore function to check if db exists then destroy before creating new
- * 74f6d46 - 2019-03-04: Release v9.4.78
- * 3c0d05a - 2019-03-04: Source updates now download and unpack to main program folder to resolve update issues.
......
......@@ -2361,8 +2361,10 @@ class Config(object):
'Providers': dict({
'providers_order': sickrage.app.search_providers.provider_order,
'custom_providers': self.custom_providers,
}, **{providerID: dict([(x, getattr(providerObj, x)) for x in provider_keys if hasattr(providerObj, x)]) for
providerID, providerObj in sickrage.app.search_providers.all().items()}),
}, **{providerID: dict([(x, int(getattr(providerObj, x)) if isinstance(getattr(providerObj, x),
bool) else getattr(providerObj, x))
for x in provider_keys if hasattr(providerObj, x)]) for providerID, providerObj in
sickrage.app.search_providers.all().items()}),
'MetadataProviders': {metadataProviderID: metadataProviderObj.get_config() for
metadataProviderID, metadataProviderObj in sickrage.app.metadata_providers.items()}
})
......@@ -2428,10 +2430,10 @@ class ConfigMigrator(Config):
if current_version > expected_version:
sickrage.app.log.warning("Your config version (%i) has been incremented past what this version of supports "
"(%i). If you have used other forks or a newer version of your config file may be "
"unusable due to their modifications." % (current_version,
expected_version)
)
"(%i). If you have used other forks or a newer version of your config file may be "
"unusable due to their modifications." % (current_version,
expected_version)
)
sys.exit(1)
while current_version < expected_version:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment