Fix to create initial config.ini when one doesn't exist

Fix saving config.ini during startup (update or creating)
This commit is contained in:
Prinz23 2024-08-11 21:00:07 +02:00 committed by JackDandy
parent c37a753c6a
commit 6a65cebc06
4 changed files with 9 additions and 4 deletions

View file

@ -1,4 +1,9 @@
### 3.32.4 (2024-08-10 11:40:00 UTC) ### 3.32.5 (2024-08-12 00:15:00 UTC)
* Fix to create initial config.ini when one doesn't exist
### 3.32.4 (2024-08-10 11:40:00 UTC)
* Change person cards to not display "eps" when number of eps is unknown * Change person cards to not display "eps" when number of eps is unknown
* Fix wrong added death dates * Fix wrong added death dates

View file

@ -1511,7 +1511,7 @@ def init_stage_1(console_logging):
# Get expected config version # Get expected config version
CONFIG_VERSION = max(ConfigMigrator(CFG).migration_names) CONFIG_VERSION = max(ConfigMigrator(CFG).migration_names)
if update_config: if update_config:
save_config() _save_config(force=True)
# start up all the threads # start up all the threads
old_log = os.path.join(LOG_DIR, 'sickgear.log') old_log = os.path.join(LOG_DIR, 'sickgear.log')

View file

@ -581,7 +581,7 @@ class ConfigMigrator(object):
# save new config after migration # save new config after migration
sickgear.CONFIG_VERSION = self.config_version sickgear.CONFIG_VERSION = self.config_version
logger.log('Saving config file to disk') logger.log('Saving config file to disk')
sickgear.save_config() sickgear._save_config()
@staticmethod @staticmethod
def deprecate_anon_service(): def deprecate_anon_service():

View file

@ -624,7 +624,7 @@ class Add1080pAndRawHDQualities(db.SchemaUpgrade):
# update the default quality so we dont grab the wrong qualities after migration # update the default quality so we dont grab the wrong qualities after migration
sickgear.QUALITY_DEFAULT = self._update_composite_qualities(sickgear.QUALITY_DEFAULT) sickgear.QUALITY_DEFAULT = self._update_composite_qualities(sickgear.QUALITY_DEFAULT)
sickgear.save_config() sickgear._save_config()
# upgrade previous HD to HD720p -- shift previous qualities to new placevalues # upgrade previous HD to HD720p -- shift previous qualities to new placevalues
old_hd = common.Quality.combine_qualities( old_hd = common.Quality.combine_qualities(