From 674617c0f80cb1f46c8f62e84d34851cab7bf5b4 Mon Sep 17 00:00:00 2001 From: Bas Stottelaar Date: Mon, 12 May 2014 12:09:26 +0200 Subject: [PATCH] Ensure correct types --- headphones/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headphones/__init__.py b/headphones/__init__.py index ac685164..a136efa8 100644 --- a/headphones/__init__.py +++ b/headphones/__init__.py @@ -646,7 +646,7 @@ def initialize(): ALBUM_COMPLETION_PCT = check_setting_int(CFG, 'Advanced', 'album_completion_pct', 80) - VERIFY_SSL_CERT = bool(check_setting_int(CFG, 'Advanced', 'verify_ssl_cert', True)) + VERIFY_SSL_CERT = bool(check_setting_int(CFG, 'Advanced', 'verify_ssl_cert', 1)) # update folder formats in the config & bump up config version if CONFIG_VERSION == '0': @@ -1098,7 +1098,7 @@ def config_write(): new_config['Advanced']['album_completion_pct'] = ALBUM_COMPLETION_PCT new_config['Advanced']['cache_sizemb'] = CACHE_SIZEMB new_config['Advanced']['journal_mode'] = JOURNAL_MODE - new_config['Advanced']['verify_ssl_cert'] = VERIFY_SSL_CERT + new_config['Advanced']['verify_ssl_cert'] = int(VERIFY_SSL_CERT) new_config.write()