INNER CODE UNIT · Python

update_existing_config

ImranR98/apps.obtainium.imranr.dev · scripts/generate_from_url.py:171

def update_existing_config():
    """Add an additional config to an existing config file."""
    url_input = unquote(input("Input URL to extract JSON from: "))

    if not is_obtainium_url(url_input):
        print(Fore.RED + "Invalid URL. Please try again.")
        return

    app_config_json = extract_json_from_obtainium_url(url_input)
    if app_config_json is None or not validate_app_config(app_config_json):
        return

    app_file_name_input = input("Input file to add config to (e.g. com.example.app.json): ")
    if not app_file_name_input.endswith('.json'):
        app_file_name_input += '.json'
    app_file_path = find_config_file(app_file_name_input)

    if app_file_path is None:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…