Prevent invalid names
This commit is contained in:
parent
610cef5a9c
commit
e34cc938c2
40 changed files with 40 additions and 40 deletions
|
|
@ -64,7 +64,7 @@ def collect_custom_format(service, file_name, input_json, output_dir):
|
|||
name = input_json.get("name", "")
|
||||
trash_id = input_json.get("trash_id", "")
|
||||
yml_data = {
|
||||
"name": name,
|
||||
"name": get_file_name(name),
|
||||
"trash_id": trash_id,
|
||||
"trash_scores": input_json.get("trash_scores", {}),
|
||||
"description": f"""[Custom format from TRaSH-Guides.](https://trash-guides.info/{service.capitalize()}/{service.capitalize()}-collection-of-custom-formats/#{file_name})
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ def collect_profile(service, input_json, output_dir):
|
|||
name = input_json.get("name", "")
|
||||
trash_id = input_json.get("trash_id", "")
|
||||
yml_data = {
|
||||
"name": name,
|
||||
"name": get_file_name(name),
|
||||
"description": f"""[Profile from TRaSH-Guides.](https://trash-guides.info/{service.capitalize()}/{service}-setup-quality-profiles)
|
||||
|
||||
{markdownify(input_json.get('trash_description', ''))}""".strip(),
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ def collect_regex_pattern(service, file_name, input_json, output_dir):
|
|||
# Compose YAML structure
|
||||
name = spec.get("name", "")
|
||||
yml_data = {
|
||||
"name": name,
|
||||
"name": get_file_name(name),
|
||||
"pattern": pattern,
|
||||
"description": "",
|
||||
"tags": [],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue