fix(release/parser): recognize Sxx-yy season range as tv_complete
`Der.Tatortreiniger.S01-06.GERMAN...` previously parsed as a movie with 'S01-06' glued to the title. The parser now matches the season-range form in _parse_season_episode (returning season=first, episode=None), and the assemble step detects the range token to promote media_type to 'tv_complete'. The first season is exposed as `season` so `is_season_pack` fires (season is not None and episode is None) — useful for routing to a series root folder. Fixture shitty/tatortreiniger_flat_multiseason/ updated: - title: Der.Tatortreiniger.S01-06 → Der.Tatortreiniger - season: null → 1 - media_type: movie → tv_complete - is_season_pack: false → true
This commit is contained in:
@@ -23,6 +23,12 @@ callers).
|
||||
with intermediate values implied. Fixture
|
||||
`shitty/archer_multi_episode/` updated from anti-regression-of-bug
|
||||
to anti-regression-of-fix.
|
||||
- **Season-range markers (`Sxx-yy`) are now recognized as
|
||||
`tv_complete`.** `Der.Tatortreiniger.S01-06.GERMAN...` previously
|
||||
parsed as `media_type=movie` with `S01-06` glued onto the title.
|
||||
The parser now recognizes the range, sets `season=first`,
|
||||
`media_type=tv_complete`, and removes the marker from the title.
|
||||
`is_season_pack` flips to `true`.
|
||||
- **Pure-punctuation TITLE tokens are dropped at assembly.** Releases
|
||||
with surrounding ` - ` separators (`Vinyl - 1x01 - FHD`) previously
|
||||
produced `title="Vinyl.-"`. Such tokens (a stray dash, a wide pipe
|
||||
|
||||
Reference in New Issue
Block a user