diff --git a/picard/__init__.py b/picard/__init__.py index e34266128..e4a4e6157 100644 --- a/picard/__init__.py +++ b/picard/__init__.py @@ -22,7 +22,7 @@ import re PICARD_APP_NAME = "Picard" PICARD_ORG_NAME = "MusicBrainz" -PICARD_VERSION = (1, 4, 0, 'dev', 3) +PICARD_VERSION = (1, 4, 0, 'dev', 4) # optional build version # it should be in the form '_' diff --git a/picard/config_upgrade.py b/picard/config_upgrade.py index 90a6e30bc..01aa3eb1a 100644 --- a/picard/config_upgrade.py +++ b/picard/config_upgrade.py @@ -164,6 +164,15 @@ def upgrade_to_v1_4_0_dev_3(): _s['ca_providers'] = newopts +def upgrade_to_v1_4_0_dev_4(): + """Adds trailing comma to default file names for scripts""" + old_opt = "$if($ne(%albumartist%,),%album%/)" + new_opt = "$if($ne(%albumartist%,),%album%/,)" + if old_opt in _s: + _s[new_opt] = _s.value(old_opt, config.BoolOption, True) + _s.remove(old_opt) + + def upgrade_config(): cfg = config._config cfg.register_upgrade_hook(upgrade_to_v1_0_0_final_0) @@ -173,4 +182,5 @@ def upgrade_config(): cfg.register_upgrade_hook(upgrade_to_v1_3_0_dev_4) cfg.register_upgrade_hook(upgrade_to_v1_4_0_dev_2) cfg.register_upgrade_hook(upgrade_to_v1_4_0_dev_3) + cfg.register_upgrade_hook(upgrade_to_v1_4_0_dev_4) cfg.run_upgrade_hooks(log.debug)