Repository navigation
Conversation
Adds a late-running episodes handler for the classic XVID-era naming where
season+episode is a single 3-digit number (Show.103.Episode.Name.avi =
S01E03, Show.301 = S03E01, Show.110 = S01E10). The handler also fills in
the seasons field when no explicit season marker is present.
Deliberately excluded to avoid false positives:
- codec numbers (H.264/H.265)
- absolute-episode conventions ("- 107 -", "523 23")
- bracket/slash contexts (anime ranges, par2 numbering)
- movie-title numbers followed by a year ("Crime.101.2026")
- PPV event numbers ("UFC.218.PPV")
- 100/200-style values that would yield episode 0
Closes AIOStreams#53
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a late-running episodes handler for the classic XVID-era naming where season+episode is a single 3-digit number:
Yes.Dear.103.dsr.xvid-saints.aviYes.Dear.106.Gregs.Big.Day.DSRip.XviD-SAiNT.aviYes.Dear.301.Spanks.But.No.Spanks.SDTV.aviYes.Dear.110.Talk.Time.DSRip.XviD-SAiNT.aviThe handler also fills in the
seasonsfield when no explicit season marker is present, and strips the digits from the title (remove: true).Why
Old shows on NZB indexers often exist only as DVD/DSRip XVID season packs with this naming. Downstream consumers (AIOStreams' file selection inside season packs, see Viren070/AIOStreams#1162) rely on parsed
season/episodesto pick the right file; without them every episode resolves to an arbitrary file.Design / false-positive guards
The handler runs late in the episodes batch so structured markers (S01E03, ep, Cap., …) win first. The 264/265 codec handler above takes precedence for those values. A
validateMatch+ transform reject:H.264/H.265, andx264/x265via the word-boundary lookbehind)"- 107 -","523 23") — left to the existing fallback handler[166-192TV], par2(003/101))"523 23")UFC.218.PPV— theppvfeature handler consumes the marker first, so the check reads the parsedppvfield)Crime.101.2026— year handler removes the year from the title, so the check reads the parsedyearfield)100/200-style values that would yield episode 0Ambiguity note
110is parsed as S01E10 (season = leading digit, episode = trailing two digits, seasons 1–9 only). This matches the convention used by the classicparse-torrent-namelibrary. The 3-digit scheme is inherently ambiguous for shows with 10+ seasons; restricting to[1-9]-led values keeps the common case correct.Tests
10 new tests in
episodes.test.tscovering the scheme, the guards above, and the exact filenames from AIOStreams#1162. Full suite: 1253 passed, 0 failed.Closes #53