This commit is contained in:
Kovid Goyal 2024-10-16 21:02:41 +05:30
parent 693e61073a
commit 16cb7d3083
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -16,7 +16,9 @@ from calibre.utils.localization import canonicalize_lang
CONFIG_NAME = 'tts'
TTS_EMBEDED_CONFIG = 'tts-embedded'
conf_cache = {} # for some reason LRU cache doesn't work for this
# lru_cache doesn't work for this because it returns different results for
# load_config() and load_config(CONFIG_NAME)
conf_cache = {}
def load_config(config_name=CONFIG_NAME) -> JSONConfig: