From 1f89ce42794bda0c88dc30843e64e7b090e78221 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Fri, 12 Jan 2024 08:10:31 +0100 Subject: ✨ Embedded cover dimensions can be changed in settings. Fixes #15. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tidal_dl_ng/config.py') diff --git a/tidal_dl_ng/config.py b/tidal_dl_ng/config.py index bdcc70d..cc5ca2d 100644 --- a/tidal_dl_ng/config.py +++ b/tidal_dl_ng/config.py @@ -36,7 +36,10 @@ class BaseConfig: result = True except (JSONDecodeError, TypeError, FileNotFoundError): self.data = self.cls_model() - self.save() + + # Call save in case of we need to update the saved config, due to changes in code. + # TODO: Compare if config in memory and on disk is different. Otherwise no write operation. + self.save() return result -- cgit v1.3.1