Prevent invalid names

This commit is contained in:
Johan van Eck 2025-07-26 12:55:10 +03:00
parent 610cef5a9c
commit e34cc938c2
40 changed files with 40 additions and 40 deletions

View file

@ -1,4 +1,4 @@
name: Anime BD Tier 07 (P2P/Scene) name: Anime BD Tier 07 (P2P-Scene)
trash_id: 1ef101b3a82646b40e0cab7fc92cd896 trash_id: 1ef101b3a82646b40e0cab7fc92cd896
trash_scores: trash_scores:
default: 800 default: 800

View file

@ -1,4 +1,4 @@
name: Line/Mic Dubbed name: Line-Mic Dubbed
trash_id: c465ccc73923871b3eb1802042331306 trash_id: c465ccc73923871b3eb1802042331306
trash_scores: trash_scores:
default: -10000 default: -10000

View file

@ -1,4 +1,4 @@
name: Repack/Proper name: Repack-Proper
trash_id: e7718d7a3ce595f289bfee26adc178f5 trash_id: e7718d7a3ce595f289bfee26adc178f5
trash_scores: trash_scores:
default: 5 default: 5

View file

@ -1,4 +1,4 @@
name: x265 (no HDR/DV) name: x265 (no HDR-DV)
trash_id: 839bea857ed2c0a8e084f3cbdbd65ecb trash_id: 839bea857ed2c0a8e084f3cbdbd65ecb
trash_scores: trash_scores:
default: -10000 default: -10000

View file

@ -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\ 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:\ \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" \ 480p, 720, 1080p \n- Bluray 480p, 576p, 720p, 1080p \n- Remux 1080p"

View file

@ -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\ 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" \nFrench Quality Profile that covers: \n- WEBDL: 1080p \n- Bluray 720p, 1080p"
trash_id: 2572ce3ea4eef1c19d59e0e20ed1cea7 trash_id: 2572ce3ea4eef1c19d59e0e20ed1cea7

View file

@ -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\ 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:\ \nFrench Quality Profile that covers: \n- WEBDL: 1080p \n- Bluray 1080p \n- Remux:\
\ 1080p" \ 1080p"

View file

@ -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\ 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\ \nFrench Quality Profile that covers: \n- WEBDL: 1080p, 2160p \n- Bluray: 2160p\
\ \n- Remux: 1080p" \ \n- Remux: 1080p"

View file

@ -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\ 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\ \nFrench Quality Profile that covers: \n- WEBDL: 1080p, 2160p \n- Bluray: 2160p\
\ \n- Remux: 2160p" \ \n- Remux: 2160p"

View file

@ -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\ 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,\ \nGerman Quality Profile that covers: \n- WEBDL: 720p, 1080p \n- Bluray: 720p,\
\ 1080p" \ 1080p"

View file

@ -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\ 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" \nGerman Quality Profile that covers: \n- WEBDL: 1080p \n- Remux: 1080p"
trash_id: c13c33fdd2c306266b34cb9946de5919 trash_id: c13c33fdd2c306266b34cb9946de5919

View file

@ -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\ 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" \nGerman Quality Profile that covers: \n- WEBDL: 2160p \n- Remux: 2160p"
trash_id: 79faa9943cef2f510b997b1f2a9f3ea6 trash_id: 79faa9943cef2f510b997b1f2a9f3ea6

View file

@ -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\ 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:\ \nGerman Quality Profile that covers: \n- WEBDL: 720p, 1080p, 2160p \n- Bluray:\
\ 720p, 1080p, 2160p" \ 720p, 1080p, 2160p"

View file

@ -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\ 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" \nGerman Quality Profile that covers: \n- WEBDL: 2160p \n- Bluray: 2160p"
trash_id: 27cc3d153c0a799fd139ef1ff4c4cc42 trash_id: 27cc3d153c0a799fd139ef1ff4c4cc42

View file

@ -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) description: '[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles)

View file

@ -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) description: '[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles)

View file

@ -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) description: '[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles)

View file

@ -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) description: '[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles)

View file

@ -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) description: '[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles)

View file

@ -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) description: '[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles)

View file

@ -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) description: '[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles)

View file

@ -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) description: '[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles)

View file

@ -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) description: '[Profile from TRaSH-Guides.](https://trash-guides.info/Radarr/radarr-setup-quality-profiles)

View file

@ -1,4 +1,4 @@
name: '[TGx]' name: (TGx)
pattern: \[TGx\] pattern: \[TGx\]
description: '' description: ''
tags: [] tags: []

View file

@ -1,4 +1,4 @@
name: '[eztv]' name: (eztv)
pattern: \[eztvx?[ ._-]?(io|re|to)?\] pattern: \[eztvx?[ ._-]?(io|re|to)?\]
description: '' description: ''
tags: [] tags: []

View file

@ -1,4 +1,4 @@
name: '[rarbg]' name: (rarbg)
pattern: \[rarbg\] pattern: \[rarbg\]
description: '' description: ''
tags: [] tags: []

View file

@ -1,4 +1,4 @@
name: '[rartv]' name: (rartv)
pattern: \[rartv\] pattern: \[rartv\]
description: '' description: ''
tags: [] tags: []

View file

@ -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 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: '' description: ''
tags: [] tags: []

View file

@ -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 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: '' description: ''
tags: [] tags: []

View file

@ -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(?!$) pattern: (?<=\b[12]\d{3}\b).*\b((B(lack)?[ ._-]?(out|(and|[n&])[ ._-]?(W(hite)?|Chrome))))\b(?!$)
description: '' description: ''
tags: [] tags: []

View file

@ -1,4 +1,4 @@
name: DeTAG/ReTAG name: DeTAG-ReTAG
pattern: \b((Cpasbien|CPB)|ANONA|AT|bigZT|Boheme|BOL|CINeHD|Cortex91|DOLL4R|Dread[ 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 .-]?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: '' description: ''

View file

@ -1,4 +1,4 @@
name: No/Minus Color name: No-Minus Color
pattern: (?<=\b[12]\d{3}\b).*\b((No|Minus)[ ._-]?Colou?r)\b(?!$) pattern: (?<=\b[12]\d{3}\b).*\b((No|Minus)[ ._-]?Colou?r)\b(?!$)
description: '' description: ''
tags: [] tags: []

View file

@ -1,4 +1,4 @@
name: Not DTS-HD HRA/ES name: Not DTS-HD HRA-ES
pattern: dts[-. ]?(es|(hd[. ]?)?(hr|hi)) pattern: dts[-. ]?(es|(hd[. ]?)?(hr|hi))
description: '' description: ''
tags: [] tags: []

View file

@ -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 pattern: \b(dv|dovi|dolby[ .]?v(ision)?|hdr(10(P(lus)?)?)?|pq)\b
description: '' description: ''
tags: [] tags: []

View file

@ -1,4 +1,4 @@
name: Not INFLATE/DEFLATE name: Not INFLATE-DEFLATE
pattern: \b(INFLATE|DEFLATE)\b pattern: \b(INFLATE|DEFLATE)\b
description: '' description: ''
tags: [] tags: []

View file

@ -1,4 +1,4 @@
name: Not TrueHD/ATMOS name: Not TrueHD-ATMOS
pattern: True[ .-]?HD|\bATMOS(\b|\d) pattern: True[ .-]?HD|\bATMOS(\b|\d)
description: '' description: ''
tags: [] tags: []

View file

@ -1,4 +1,4 @@
name: x265/HEVC name: x265-HEVC
pattern: '[xh][ ._-]?265|\bHEVC(\b|\d)' pattern: '[xh][ ._-]?265|\bHEVC(\b|\d)'
description: '' description: ''
tags: [] tags: []

View file

@ -64,7 +64,7 @@ def collect_custom_format(service, file_name, input_json, output_dir):
name = input_json.get("name", "") name = input_json.get("name", "")
trash_id = input_json.get("trash_id", "") trash_id = input_json.get("trash_id", "")
yml_data = { yml_data = {
"name": name, "name": get_file_name(name),
"trash_id": trash_id, "trash_id": trash_id,
"trash_scores": input_json.get("trash_scores", {}), "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}) "description": f"""[Custom format from TRaSH-Guides.](https://trash-guides.info/{service.capitalize()}/{service.capitalize()}-collection-of-custom-formats/#{file_name})

View file

@ -96,7 +96,7 @@ def collect_profile(service, input_json, output_dir):
name = input_json.get("name", "") name = input_json.get("name", "")
trash_id = input_json.get("trash_id", "") trash_id = input_json.get("trash_id", "")
yml_data = { 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) "description": f"""[Profile from TRaSH-Guides.](https://trash-guides.info/{service.capitalize()}/{service}-setup-quality-profiles)
{markdownify(input_json.get('trash_description', ''))}""".strip(), {markdownify(input_json.get('trash_description', ''))}""".strip(),

View file

@ -27,7 +27,7 @@ def collect_regex_pattern(service, file_name, input_json, output_dir):
# Compose YAML structure # Compose YAML structure
name = spec.get("name", "") name = spec.get("name", "")
yml_data = { yml_data = {
"name": name, "name": get_file_name(name),
"pattern": pattern, "pattern": pattern,
"description": "", "description": "",
"tags": [], "tags": [],