Skip to content

Commit

Permalink
ntfy fix and 1-liner fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bullmoose20 committed Feb 24, 2025
1 parent db40cb4 commit 414b60c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions modules/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ def user_visible_name(raw_name):
formatted_name = "OMDb"
elif raw_name == "github":
formatted_name = "GitHub"
elif raw_name == "ntfy":
formatted_name = "ntfy"
elif raw_name == "mal":
formatted_name = "MyAnimeList"
elif raw_name == "mdblist":
Expand Down
6 changes: 5 additions & 1 deletion modules/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import pyfiglet
from ruamel.yaml import YAML
from flask import current_app as app
from datetime import datetime

from .persistence import (
save_settings,
Expand Down Expand Up @@ -437,10 +438,13 @@ def build_config(header_style="standard", config_name=None):
"kometa_branch", "nightly"
) # Default to nightly if not found

# Get the current timestamp in a readable format
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")

yaml_content = (
f"# yaml-language-server: $schema=https://raw.githubusercontent.com/Kometa-Team/Kometa/{kometa_branch}/json-schema/config-schema.json\n\n"
f"{add_border_to_ascii_art(section_heading('KOMETA', font=header_style)) if header_style not in ['none', 'single line'] else section_heading('KOMETA', font=header_style)}\n\n"
f"{add_border_to_ascii_art(section_heading(config_name, font=header_style)) if header_style not in ['none', 'single line'] else section_heading(config_name, font=header_style)}\n\n"
f"# {config_name} config created by Quickstart on {timestamp}\n\n"
f"{header_comment}\n\n"
)

Expand Down

0 comments on commit 414b60c

Please sign in to comment.