Files
alfred/tests/fixtures/releases/shitty/vinyl_1x01_format/expected.yaml
T
francwa b1c7f35ffb fix(release/parser): drop pure-punctuation TITLE tokens at assembly
Releases using ' - ' as a separator (Vinyl - 1x01 - FHD) tokenize to
['Vinyl', '-', '1x01', '-', 'FHD'] — the standalone '-' tokens were
ending up in title_parts and leaked into the joined title
('Vinyl.-'). We can't add '-' to the separator list (it would break
codec-GROUP), so we filter at assembly: a TITLE token with no
alphanumeric characters carries no title content.

Side win: same logic eliminates the UTF-8 wide-pipe '|' from the
khruangbin_yt_wide_pipe fixture title.

Fixtures updated:
- shitty/vinyl_1x01_format/expected.yaml (title: Vinyl.- → Vinyl)
- path_of_pain/khruangbin_yt_wide_pipe/expected.yaml (| dropped)
2026-05-20 23:24:40 +02:00

34 lines
910 B
YAML

release_name: "Vinyl - 1x01 - FHD"
# Surrounding ' - ' separators in human-friendly release names left stray
# '-' tokens attached to the title. They are now dropped at assembly time
# (pure-punctuation TITLE tokens carry no content). NxNN form correctly
# identifies S01E01; tech-side stays empty (no quality token in KB — "FHD"
# not yet known).
parsed:
title: "Vinyl"
year: null
season: 1
episode: 1
quality: null
source: null
codec: null
group: "UNKNOWN"
tech_string: ""
media_type: "tv_show"
parse_path: "direct"
is_season_pack: false
tree:
- "Vinyl - 1x01 - FHD/"
- "Vinyl - 1x01 - FHD/Vinyl - 1x01 - FHD.mkv"
routing:
library:
- "Vinyl - 1x01 - FHD/Vinyl - 1x01 - FHD.mkv"
torrents:
- "Vinyl - 1x01 - FHD/"
seed_hardlinks:
- source: "library/Vinyl - 1x01 - FHD/Vinyl - 1x01 - FHD.mkv"
target: "torrents/Vinyl - 1x01 - FHD/Vinyl - 1x01 - FHD.mkv"