From e34cc938c2a209965016cee8c7a05c0204fb7ed9 Mon Sep 17 00:00:00 2001 From: Johan van Eck Date: Sat, 26 Jul 2025 12:55:10 +0300 Subject: [PATCH] Prevent invalid names --- custom_formats/Anime BD Tier 07 (P2P-Scene).yml | 2 +- custom_formats/Line-Mic Dubbed.yml | 2 +- custom_formats/Repack-Proper.yml | 2 +- custom_formats/x265 (no HDR-DV).yml | 2 +- profiles/(Anime) Remux-1080p.yml | 2 +- profiles/(French MULTi.VO) HD Bluray + WEB.yml | 2 +- profiles/(French MULTi.VO) HD Remux (1080p).yml | 2 +- profiles/(French MULTi.VO) UHD Bluray + WEB.yml | 2 +- profiles/(French MULTi.VO) UHD Remux (2160p).yml | 2 +- profiles/(German) HD Bluray + WEB.yml | 2 +- profiles/(German) HD Remux + WEB.yml | 2 +- profiles/(German) Remux + WEB 2160p.yml | 2 +- profiles/(German) UHD Bluray + WEB (Alternative).yml | 2 +- profiles/(German) UHD Bluray + WEB.yml | 2 +- profiles/(SQP) SQP-1 (1080p).yml | 2 +- profiles/(SQP) SQP-1 (2160p).yml | 2 +- profiles/(SQP) SQP-1 WEB (1080p).yml | 2 +- profiles/(SQP) SQP-1 WEB (2160p).yml | 2 +- profiles/(SQP) SQP-2.yml | 2 +- profiles/(SQP) SQP-3 (Audio).yml | 2 +- profiles/(SQP) SQP-3.yml | 2 +- profiles/(SQP) SQP-4.yml | 2 +- profiles/(SQP) SQP-5.yml | 2 +- regex_patterns/(TGx).yml | 2 +- regex_patterns/(eztv).yml | 2 +- regex_patterns/(rarbg).yml | 2 +- regex_patterns/(rartv).yml | 2 +- regex_patterns/Ads-Watermarks.yml | 2 +- regex_patterns/Bad-False releases.yml | 2 +- regex_patterns/Blackout-B&W-Black&Chrome.yml | 2 +- regex_patterns/DeTAG-ReTAG.yml | 2 +- regex_patterns/No-Minus Color.yml | 2 +- regex_patterns/Not DTS-HD HRA-ES.yml | 2 +- regex_patterns/Not HDR-DV.yml | 2 +- regex_patterns/Not INFLATE-DEFLATE.yml | 2 +- regex_patterns/Not TrueHD-ATMOS.yml | 2 +- regex_patterns/x265-HEVC.yml | 2 +- scripts/utils/custom_formats.py | 2 +- scripts/utils/profiles.py | 2 +- scripts/utils/regex_patterns.py | 2 +- 40 files changed, 40 insertions(+), 40 deletions(-) diff --git a/custom_formats/Anime BD Tier 07 (P2P-Scene).yml b/custom_formats/Anime BD Tier 07 (P2P-Scene).yml index a36602d..afa1f78 100644 --- a/custom_formats/Anime BD Tier 07 (P2P-Scene).yml +++ b/custom_formats/Anime BD Tier 07 (P2P-Scene).yml @@ -1,4 +1,4 @@ -name: Anime BD Tier 07 (P2P/Scene) +name: Anime BD Tier 07 (P2P-Scene) trash_id: 1ef101b3a82646b40e0cab7fc92cd896 trash_scores: default: 800 diff --git a/custom_formats/Line-Mic Dubbed.yml b/custom_formats/Line-Mic Dubbed.yml index 9abc246..6ae43c3 100644 --- a/custom_formats/Line-Mic Dubbed.yml +++ b/custom_formats/Line-Mic Dubbed.yml @@ -1,4 +1,4 @@ -name: Line/Mic Dubbed +name: Line-Mic Dubbed trash_id: c465ccc73923871b3eb1802042331306 trash_scores: default: -10000 diff --git a/custom_formats/Repack-Proper.yml b/custom_formats/Repack-Proper.yml index f9e8721..d7cb61f 100644 --- a/custom_formats/Repack-Proper.yml +++ b/custom_formats/Repack-Proper.yml @@ -1,4 +1,4 @@ -name: Repack/Proper +name: Repack-Proper trash_id: e7718d7a3ce595f289bfee26adc178f5 trash_scores: default: 5 diff --git a/custom_formats/x265 (no HDR-DV).yml b/custom_formats/x265 (no HDR-DV).yml index c8af2cc..6ea4401 100644 --- a/custom_formats/x265 (no HDR-DV).yml +++ b/custom_formats/x265 (no HDR-DV).yml @@ -1,4 +1,4 @@ -name: x265 (no HDR/DV) +name: x265 (no HDR-DV) trash_id: 839bea857ed2c0a8e084f3cbdbd65ecb trash_scores: default: -10000 diff --git a/profiles/(Anime) Remux-1080p.yml b/profiles/(Anime) Remux-1080p.yml index ad467d4..1130a12 100644 --- a/profiles/(Anime) Remux-1080p.yml +++ b/profiles/(Anime) Remux-1080p.yml @@ -1,4 +1,4 @@ -name: '[Anime] Remux-1080p' +name: (Anime) Remux-1080p description: "[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles)\n\ \nAnime Quality Profile that covers: \n- SDTV, DVD \n- HDTV 720p, 1080p \n- WEBDL:\ \ 480p, 720, 1080p \n- Bluray 480p, 576p, 720p, 1080p \n- Remux 1080p" diff --git a/profiles/(French MULTi.VO) HD Bluray + WEB.yml b/profiles/(French MULTi.VO) HD Bluray + WEB.yml index 2e677e5..77e5db5 100644 --- a/profiles/(French MULTi.VO) HD Bluray + WEB.yml +++ b/profiles/(French MULTi.VO) HD Bluray + WEB.yml @@ -1,4 +1,4 @@ -name: '[French MULTi.VO] HD Bluray + WEB' +name: (French MULTi.VO) HD Bluray + WEB description: "[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles)\n\ \nFrench Quality Profile that covers: \n- WEBDL: 1080p \n- Bluray 720p, 1080p" trash_id: 2572ce3ea4eef1c19d59e0e20ed1cea7 diff --git a/profiles/(French MULTi.VO) HD Remux (1080p).yml b/profiles/(French MULTi.VO) HD Remux (1080p).yml index c362716..8fd6a58 100644 --- a/profiles/(French MULTi.VO) HD Remux (1080p).yml +++ b/profiles/(French MULTi.VO) HD Remux (1080p).yml @@ -1,4 +1,4 @@ -name: '[French MULTi.VO] HD Remux (1080p)' +name: (French MULTi.VO) HD Remux (1080p) description: "[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles)\n\ \nFrench Quality Profile that covers: \n- WEBDL: 1080p \n- Bluray 1080p \n- Remux:\ \ 1080p" diff --git a/profiles/(French MULTi.VO) UHD Bluray + WEB.yml b/profiles/(French MULTi.VO) UHD Bluray + WEB.yml index 8ef3bd3..3092e8e 100644 --- a/profiles/(French MULTi.VO) UHD Bluray + WEB.yml +++ b/profiles/(French MULTi.VO) UHD Bluray + WEB.yml @@ -1,4 +1,4 @@ -name: '[French MULTi.VO] UHD Bluray + WEB' +name: (French MULTi.VO) UHD Bluray + WEB description: "[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles)\n\ \nFrench Quality Profile that covers: \n- WEBDL: 1080p, 2160p \n- Bluray: 2160p\ \ \n- Remux: 1080p" diff --git a/profiles/(French MULTi.VO) UHD Remux (2160p).yml b/profiles/(French MULTi.VO) UHD Remux (2160p).yml index f62de19..5ceb2a2 100644 --- a/profiles/(French MULTi.VO) UHD Remux (2160p).yml +++ b/profiles/(French MULTi.VO) UHD Remux (2160p).yml @@ -1,4 +1,4 @@ -name: '[French MULTi.VO] UHD Remux (2160p)' +name: (French MULTi.VO) UHD Remux (2160p) description: "[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles)\n\ \nFrench Quality Profile that covers: \n- WEBDL: 1080p, 2160p \n- Bluray: 2160p\ \ \n- Remux: 2160p" diff --git a/profiles/(German) HD Bluray + WEB.yml b/profiles/(German) HD Bluray + WEB.yml index 1e6c6d0..8cd80e4 100644 --- a/profiles/(German) HD Bluray + WEB.yml +++ b/profiles/(German) HD Bluray + WEB.yml @@ -1,4 +1,4 @@ -name: '[German] HD Bluray + WEB' +name: (German) HD Bluray + WEB description: "[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles)\n\ \nGerman Quality Profile that covers: \n- WEBDL: 720p, 1080p \n- Bluray: 720p,\ \ 1080p" diff --git a/profiles/(German) HD Remux + WEB.yml b/profiles/(German) HD Remux + WEB.yml index f553cf4..c8f595e 100644 --- a/profiles/(German) HD Remux + WEB.yml +++ b/profiles/(German) HD Remux + WEB.yml @@ -1,4 +1,4 @@ -name: '[German] HD Remux + WEB' +name: (German) HD Remux + WEB description: "[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles)\n\ \nGerman Quality Profile that covers: \n- WEBDL: 1080p \n- Remux: 1080p" trash_id: c13c33fdd2c306266b34cb9946de5919 diff --git a/profiles/(German) Remux + WEB 2160p.yml b/profiles/(German) Remux + WEB 2160p.yml index 42b20aa..7122b41 100644 --- a/profiles/(German) Remux + WEB 2160p.yml +++ b/profiles/(German) Remux + WEB 2160p.yml @@ -1,4 +1,4 @@ -name: '[German] Remux + WEB 2160p' +name: (German) Remux + WEB 2160p description: "[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles)\n\ \nGerman Quality Profile that covers: \n- WEBDL: 2160p \n- Remux: 2160p" trash_id: 79faa9943cef2f510b997b1f2a9f3ea6 diff --git a/profiles/(German) UHD Bluray + WEB (Alternative).yml b/profiles/(German) UHD Bluray + WEB (Alternative).yml index 5102c8f..150dd17 100644 --- a/profiles/(German) UHD Bluray + WEB (Alternative).yml +++ b/profiles/(German) UHD Bluray + WEB (Alternative).yml @@ -1,4 +1,4 @@ -name: '[German] UHD Bluray + WEB (Alternative)' +name: (German) UHD Bluray + WEB (Alternative) description: "[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles)\n\ \nGerman Quality Profile that covers: \n- WEBDL: 720p, 1080p, 2160p \n- Bluray:\ \ 720p, 1080p, 2160p" diff --git a/profiles/(German) UHD Bluray + WEB.yml b/profiles/(German) UHD Bluray + WEB.yml index b4d8801..555e733 100644 --- a/profiles/(German) UHD Bluray + WEB.yml +++ b/profiles/(German) UHD Bluray + WEB.yml @@ -1,4 +1,4 @@ -name: '[German] UHD Bluray + WEB' +name: (German) UHD Bluray + WEB description: "[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles)\n\ \nGerman Quality Profile that covers: \n- WEBDL: 2160p \n- Bluray: 2160p" trash_id: 27cc3d153c0a799fd139ef1ff4c4cc42 diff --git a/profiles/(SQP) SQP-1 (1080p).yml b/profiles/(SQP) SQP-1 (1080p).yml index feb3cf1..34da6c7 100644 --- a/profiles/(SQP) SQP-1 (1080p).yml +++ b/profiles/(SQP) SQP-1 (1080p).yml @@ -1,4 +1,4 @@ -name: '[SQP] SQP-1 (1080p)' +name: (SQP) SQP-1 (1080p) description: '[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles) diff --git a/profiles/(SQP) SQP-1 (2160p).yml b/profiles/(SQP) SQP-1 (2160p).yml index 1b0470f..8288d23 100644 --- a/profiles/(SQP) SQP-1 (2160p).yml +++ b/profiles/(SQP) SQP-1 (2160p).yml @@ -1,4 +1,4 @@ -name: '[SQP] SQP-1 (2160p)' +name: (SQP) SQP-1 (2160p) description: '[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles) diff --git a/profiles/(SQP) SQP-1 WEB (1080p).yml b/profiles/(SQP) SQP-1 WEB (1080p).yml index 25fcb03..c6f8b24 100644 --- a/profiles/(SQP) SQP-1 WEB (1080p).yml +++ b/profiles/(SQP) SQP-1 WEB (1080p).yml @@ -1,4 +1,4 @@ -name: '[SQP] SQP-1 WEB (1080p)' +name: (SQP) SQP-1 WEB (1080p) description: '[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles) diff --git a/profiles/(SQP) SQP-1 WEB (2160p).yml b/profiles/(SQP) SQP-1 WEB (2160p).yml index 460d016..0fb67ad 100644 --- a/profiles/(SQP) SQP-1 WEB (2160p).yml +++ b/profiles/(SQP) SQP-1 WEB (2160p).yml @@ -1,4 +1,4 @@ -name: '[SQP] SQP-1 WEB (2160p)' +name: (SQP) SQP-1 WEB (2160p) description: '[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles) diff --git a/profiles/(SQP) SQP-2.yml b/profiles/(SQP) SQP-2.yml index eca3189..6b0fe78 100644 --- a/profiles/(SQP) SQP-2.yml +++ b/profiles/(SQP) SQP-2.yml @@ -1,4 +1,4 @@ -name: '[SQP] SQP-2' +name: (SQP) SQP-2 description: '[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles) diff --git a/profiles/(SQP) SQP-3 (Audio).yml b/profiles/(SQP) SQP-3 (Audio).yml index bd92290..b9e2861 100644 --- a/profiles/(SQP) SQP-3 (Audio).yml +++ b/profiles/(SQP) SQP-3 (Audio).yml @@ -1,4 +1,4 @@ -name: '[SQP] SQP-3 (Audio)' +name: (SQP) SQP-3 (Audio) description: '[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles) diff --git a/profiles/(SQP) SQP-3.yml b/profiles/(SQP) SQP-3.yml index 2247a29..81cf668 100644 --- a/profiles/(SQP) SQP-3.yml +++ b/profiles/(SQP) SQP-3.yml @@ -1,4 +1,4 @@ -name: '[SQP] SQP-3' +name: (SQP) SQP-3 description: '[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles) diff --git a/profiles/(SQP) SQP-4.yml b/profiles/(SQP) SQP-4.yml index 58652f5..514ceab 100644 --- a/profiles/(SQP) SQP-4.yml +++ b/profiles/(SQP) SQP-4.yml @@ -1,4 +1,4 @@ -name: '[SQP] SQP-4' +name: (SQP) SQP-4 description: '[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles) diff --git a/profiles/(SQP) SQP-5.yml b/profiles/(SQP) SQP-5.yml index 62ffaa0..bf87a52 100644 --- a/profiles/(SQP) SQP-5.yml +++ b/profiles/(SQP) SQP-5.yml @@ -1,4 +1,4 @@ -name: '[SQP] SQP-5' +name: (SQP) SQP-5 description: '[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles) diff --git a/regex_patterns/(TGx).yml b/regex_patterns/(TGx).yml index 6b11c85..af27068 100644 --- a/regex_patterns/(TGx).yml +++ b/regex_patterns/(TGx).yml @@ -1,4 +1,4 @@ -name: '[TGx]' +name: (TGx) pattern: \[TGx\] description: '' tags: [] diff --git a/regex_patterns/(eztv).yml b/regex_patterns/(eztv).yml index 0c5b097..6efcb04 100644 --- a/regex_patterns/(eztv).yml +++ b/regex_patterns/(eztv).yml @@ -1,4 +1,4 @@ -name: '[eztv]' +name: (eztv) pattern: \[eztvx?[ ._-]?(io|re|to)?\] description: '' tags: [] diff --git a/regex_patterns/(rarbg).yml b/regex_patterns/(rarbg).yml index fcf79de..c01b2f1 100644 --- a/regex_patterns/(rarbg).yml +++ b/regex_patterns/(rarbg).yml @@ -1,4 +1,4 @@ -name: '[rarbg]' +name: (rarbg) pattern: \[rarbg\] description: '' tags: [] diff --git a/regex_patterns/(rartv).yml b/regex_patterns/(rartv).yml index f9f7d1b..9ce7f89 100644 --- a/regex_patterns/(rartv).yml +++ b/regex_patterns/(rartv).yml @@ -1,4 +1,4 @@ -name: '[rartv]' +name: (rartv) pattern: \[rartv\] description: '' tags: [] diff --git a/regex_patterns/Ads-Watermarks.yml b/regex_patterns/Ads-Watermarks.yml index c8e665d..8f9901b 100644 --- a/regex_patterns/Ads-Watermarks.yml +++ b/regex_patterns/Ads-Watermarks.yml @@ -1,4 +1,4 @@ -name: Ads/Watermarks +name: Ads-Watermarks pattern: \b(Bandix|CZ\d+|EXTREME|GA(Ï|I)A|HMiDiMADRiDi|Hush|KILLERMIX|LiBERTAD|LTa?TM|MONiCO|NEWCINE|R(PZ|ZP)|ShowFR|VERCLAM|ViKi47|Wawa-?(city|mania|porno)?|ZW)\b description: '' tags: [] diff --git a/regex_patterns/Bad-False releases.yml b/regex_patterns/Bad-False releases.yml index 7e45d36..2efc9b2 100644 --- a/regex_patterns/Bad-False releases.yml +++ b/regex_patterns/Bad-False releases.yml @@ -1,4 +1,4 @@ -name: Bad/False releases +name: Bad-False releases pattern: \b(ACOOL|AlioZ|ASPHiXiAS|AViTECH|AZAZE|Balibalo|BLABLASTREAM|DDLFRENCH(ORG)?|FERVEX|FReeZeR|GHOSTSPiRiT|GHZ|GLaDOS|GZR|HEVCBay|JiHeff|KR4K3N|Matmatha|MKVXTEAM|Monchat|NLX5|NOMAD|NORRIS|PiCKLES|PREUMS|qctimb3rlandqc|ReBoT|ROLLED|SCREEN|SHiFT|SKRiN|TicaDow|Tokushi|Tonyk|TOXIC|TUTUTE|UNiKORN|Zombie)\b description: '' tags: [] diff --git a/regex_patterns/Blackout-B&W-Black&Chrome.yml b/regex_patterns/Blackout-B&W-Black&Chrome.yml index d9017d3..16f8c5f 100644 --- a/regex_patterns/Blackout-B&W-Black&Chrome.yml +++ b/regex_patterns/Blackout-B&W-Black&Chrome.yml @@ -1,4 +1,4 @@ -name: Blackout/B&W/Black&Chrome +name: Blackout-B&W-Black&Chrome pattern: (?<=\b[12]\d{3}\b).*\b((B(lack)?[ ._-]?(out|(and|[n&])[ ._-]?(W(hite)?|Chrome))))\b(?!$) description: '' tags: [] diff --git a/regex_patterns/DeTAG-ReTAG.yml b/regex_patterns/DeTAG-ReTAG.yml index d573f4e..e902005 100644 --- a/regex_patterns/DeTAG-ReTAG.yml +++ b/regex_patterns/DeTAG-ReTAG.yml @@ -1,4 +1,4 @@ -name: DeTAG/ReTAG +name: DeTAG-ReTAG pattern: \b((Cpasbien|CPB)|ANONA|AT|bigZT|Boheme|BOL|CINeHD|Cortex91|DOLL4R|Dread[ .-]?Team|Dropse|EZTV([ ._-]re)?|FGT|Firetown|FUN|HDMIDIMADRIDI|JetAnime|L-?O-?L|NewZT|NG|RARBG|STVFRV|SubZero|T9|Time2Watch|TIREXO|Torrent9|WebAnime|YIFY|YTS|ZONE|ZT)\b description: '' diff --git a/regex_patterns/No-Minus Color.yml b/regex_patterns/No-Minus Color.yml index 3be8a90..490f8d1 100644 --- a/regex_patterns/No-Minus Color.yml +++ b/regex_patterns/No-Minus Color.yml @@ -1,4 +1,4 @@ -name: No/Minus Color +name: No-Minus Color pattern: (?<=\b[12]\d{3}\b).*\b((No|Minus)[ ._-]?Colou?r)\b(?!$) description: '' tags: [] diff --git a/regex_patterns/Not DTS-HD HRA-ES.yml b/regex_patterns/Not DTS-HD HRA-ES.yml index 0203b69..a068cf9 100644 --- a/regex_patterns/Not DTS-HD HRA-ES.yml +++ b/regex_patterns/Not DTS-HD HRA-ES.yml @@ -1,4 +1,4 @@ -name: Not DTS-HD HRA/ES +name: Not DTS-HD HRA-ES pattern: dts[-. ]?(es|(hd[. ]?)?(hr|hi)) description: '' tags: [] diff --git a/regex_patterns/Not HDR-DV.yml b/regex_patterns/Not HDR-DV.yml index 0b879be..2ca9503 100644 --- a/regex_patterns/Not HDR-DV.yml +++ b/regex_patterns/Not HDR-DV.yml @@ -1,4 +1,4 @@ -name: Not HDR/DV +name: Not HDR-DV pattern: \b(dv|dovi|dolby[ .]?v(ision)?|hdr(10(P(lus)?)?)?|pq)\b description: '' tags: [] diff --git a/regex_patterns/Not INFLATE-DEFLATE.yml b/regex_patterns/Not INFLATE-DEFLATE.yml index 0d54a24..8c541e9 100644 --- a/regex_patterns/Not INFLATE-DEFLATE.yml +++ b/regex_patterns/Not INFLATE-DEFLATE.yml @@ -1,4 +1,4 @@ -name: Not INFLATE/DEFLATE +name: Not INFLATE-DEFLATE pattern: \b(INFLATE|DEFLATE)\b description: '' tags: [] diff --git a/regex_patterns/Not TrueHD-ATMOS.yml b/regex_patterns/Not TrueHD-ATMOS.yml index 80652e3..a9bcc21 100644 --- a/regex_patterns/Not TrueHD-ATMOS.yml +++ b/regex_patterns/Not TrueHD-ATMOS.yml @@ -1,4 +1,4 @@ -name: Not TrueHD/ATMOS +name: Not TrueHD-ATMOS pattern: True[ .-]?HD|\bATMOS(\b|\d) description: '' tags: [] diff --git a/regex_patterns/x265-HEVC.yml b/regex_patterns/x265-HEVC.yml index ac324a5..e1d9713 100644 --- a/regex_patterns/x265-HEVC.yml +++ b/regex_patterns/x265-HEVC.yml @@ -1,4 +1,4 @@ -name: x265/HEVC +name: x265-HEVC pattern: '[xh][ ._-]?265|\bHEVC(\b|\d)' description: '' tags: [] diff --git a/scripts/utils/custom_formats.py b/scripts/utils/custom_formats.py index f792681..95b8e76 100644 --- a/scripts/utils/custom_formats.py +++ b/scripts/utils/custom_formats.py @@ -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}) diff --git a/scripts/utils/profiles.py b/scripts/utils/profiles.py index 7f38418..3fe6458 100644 --- a/scripts/utils/profiles.py +++ b/scripts/utils/profiles.py @@ -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(), diff --git a/scripts/utils/regex_patterns.py b/scripts/utils/regex_patterns.py index dd860c7..be2fec0 100644 --- a/scripts/utils/regex_patterns.py +++ b/scripts/utils/regex_patterns.py @@ -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": [],