diff options
| author | Robert Honz <exislow+github@gmail.com> | 2024-01-12 08:10:31 +0100 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2024-01-12 08:10:31 +0100 |
| commit | 1f89ce42794bda0c88dc30843e64e7b090e78221 (patch) | |
| tree | ca97c54f68bda3a78682f4222dafce2b5f598be1 /tidal_dl_ng/config.py | |
| parent | d3fd384ae99b92c3840c1e7f2a113a9d34130060 (diff) | |
| download | tidal-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.py | 5 |
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 |
