Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] [Config] Detect/Copy/Download config.yml from config.yml.template #2378

Merged
merged 12 commits into from
Jan 6, 2025

Conversation

YozoraXCII
Copy link
Contributor

Description

This PR adds logic to the finding of config.yml as follows:

If config.yml is found in the config folder, run will continue as normal.

If config.yml is not found in the config folder but config.yml.template is, copy and rename the file:

Configuration file (config.yml) created at C:\Users\Yozora\Documents\Repositories\Kometa\config\config.yml. Please open this file and update it with your API keys and other required settings.

If config.yml is not found in the config folder and config.yml.template cannot be found, determine the user's branch and download/rename the config.yml.template file from GitHub:

A Configuration file (config.yml) has been downloaded from GitHub and saved as C:\Users\Yozora\Documents\Repositories\Kometa\config\config.yml. Please update this file with your API keys and other required settings.

If config.yml is not found in the config folder and config.yml.template cannot be found, and the branch cannot be detected or GitHub is unreachable, tell the user to download the file manually.

Config Error: No Configuration file (config.yml) or Template file (config.yml.template) found in the config path, and the template file(config.yml.template) could not be downloaded from GitHub. Please visit the GitHub repository to manually download the config.yml.template file and place it in C:\Users\Yozora\Documents\Repositories\Kometa\config\config.yml.template prior to running Kometa again.

Type of Change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Checklist

Please delete options that are not relevant.

  • Updated Documentation to reflect changes
  • Updated the CHANGELOG with the changes

@YozoraXCII YozoraXCII added the docker Build Pull Request in Docker label Dec 22, 2024
@YozoraXCII YozoraXCII merged commit 6efb4b9 into nightly Jan 6, 2025
4 checks passed
@YozoraXCII YozoraXCII deleted the create-config-file branch January 6, 2025 13:42
kometa-tokens bot pushed a commit that referenced this pull request Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker Build Pull Request in Docker
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants