summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/config.py
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-01-12 08:10:31 +0100
committerRobert Honz <exislow+github@gmail.com>2024-01-12 08:10:31 +0100
commit1f89ce42794bda0c88dc30843e64e7b090e78221 (patch)
treeca97c54f68bda3a78682f4222dafce2b5f598be1 /tidal_dl_ng/config.py
parentd3fd384ae99b92c3840c1e7f2a113a9d34130060 (diff)
downloadtidal-dl-ng-1f89ce42794bda0c88dc30843e64e7b090e78221.tar.gz
✨ Embedded cover dimensions can be changed in settings. Fixes #15.
Diffstat (limited to 'tidal_dl_ng/config.py')
-rw-r--r--tidal_dl_ng/config.py5
1 files changed, 4 insertions, 1 deletions
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