refactor CDM checks to improve configuration loading, user prompts, and file handling, consolidate CDM download logic into a single function

This commit is contained in:
voldemort 2025-07-22 21:16:04 +07:00
parent fd2f38fe28
commit 1328805fa5

View File

@ -38,7 +38,7 @@ def check_for_cdm(config_key, file_ext, download_url, cdm_dir, cdm_name):
if not cdm_value:
if prompt_yes_no(
f"No default {cdm_name} CDM specified, would you like to download one "
"from The CDM Project? (Y)es/(N)o: "
"from The CDM Project? (Y)es / (N)o: "
):
response = requests.get(download_url, timeout=10)
if response.status_code == 200: