Add Sonarr formats

This commit is contained in:
Johan van Eck 2025-07-26 17:13:45 +03:00
parent 8e2e83c509
commit dfe37a51a4
3889 changed files with 32544 additions and 17423 deletions

View file

@ -27,8 +27,8 @@ def collect_regex_pattern(service, file_name, input_json, output_dir):
# Compose YAML structure
name = spec.get("name", "")
yml_data = {
"name": get_file_name(name),
"pattern": get_file_name(pattern),
"name": get_file_name(service, name),
"pattern": pattern,
"description": "",
"tags": [],
"tests": [],
@ -37,7 +37,7 @@ def collect_regex_pattern(service, file_name, input_json, output_dir):
# Output path
output_path = os.path.join(
output_dir,
f"{get_file_name(name)}.yml",
f"{get_file_name(service, name)}.yml",
)
with open(output_path, "w", encoding="utf-8") as f:
yaml.dump(yml_data, f, sort_keys=False, allow_unicode=True)