Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
A bare UHD found its web source only across resolution, frame rate, HDR
and bit depth tags, so a streaming service between them made the release
a UHD BluRay: 'Movie.2020.2160p.UHD.AMZN.WEB-DL' gave 'UHD.BluRay' and
now gives 'UHD.WEB-DL', 'Show.S01E02.2160p.UHD.NF.WEBRip' 'UHD.WEBRiP'.
fixSourceUHD keeps its walk unchanged, the tv branch included. When that
finds no web or tv source, it walks again past collection, cut, edition,
language and other tags, and joins a WEB, WEB-DL or WEBRiP there. The
second walk is not taken in a name with a remux, a full disc or a
bluray, whose web words are those of a track or a hybrid. The codec,
audio and channels stop both walks, as past them a web word is the group
('UHD.x265-WEB') or a track's source.
Two joins of the second walk are known and left: a web group behind the
streaming service is still a source tag then, so
'Movie.2020.2160p.UHD.NF-WEB' gives 'UHD.WEB', and a UHD that is a word
of the title of a record or a game joins across a language or an edition
word ('Game.UHD.German.Web-GRP' gives 'UHD.WEB', and gave 'UHD.BluRay';
both are wrong). A tv source past the streaming service stays a bluray
('Show.S01E02.2160p.UHD.AMZN.HDTV', held in probeFailures).
No name of the nyaa and sports corpora, the probe sets or 54,766 real
scene names changes.
zze0s
force-pushed
the
feat/typed-source-codec-resolution
branch
from
November 18, 2026 16:12
cb06574 to
4d4424e
Compare
zze0s
force-pushed
the
fix/uhd-web-source
branch
from
November 18, 2026 16:12
6c05bdf to
02dde72
Compare
4 of 5 tasks
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.
Description
Stacked on #83. The first piece of step 7, and the one that needs no decision: it lets qui drop a workaround that walks the tags of a release.
A bare
UHDis the source rowUHD.BluRay.fixSourceUHDalready joined it with a web source next to it, but only across resolution, frame rate, HDR and bit depth tags. A streaming service between the two stopped it:Movie.2020.2160p.UHD.AMZN.WEB-DL.DDP5.1.HDR.H.265-GRPUHD.BluRayUHD.WEB-DLShow.S01E02.2160p.UHD.NF.WEBRip.x265-GRPUHD.BluRayUHD.WEBRiPMovie.2020.German.DL.2160p.UHD.NF.WEB.H265-GRPUHD.BluRayUHD.WEBMovie.2020.2160p.UHD.IMAX.WEB-DL.x265-GRPUHD.BluRayUHD.WEB-DLMovie.2020.2160p.WEB-DL.AMZN.UHD.x265-GRPWEB-DLUHD.WEB-DLThe change, all in
fixSourceUHDandnextSourceinparse.go:WEB,WEB-DLorWEBRiP.BDMV) or a BluRay source anywhere in the name. The web words of such a name are those of a track or of a hybrid.Codec, audio and channels still stop the walk. They stand behind the source in a name written the usual way, and past them a web word is the group or the source of an audio track.
These keep
UHD.BluRay:What changes, by set
Against #83: 0 of 54,766 real scene names, 0 of 13,215 nyaa names and 0 of 2,505 sports names change, and the CLI output over the scene and nyaa names is byte-identical. None of those sets holds the shape. So the evidence is built names:
tests.yamland 3 probe rows, the only rows of either that change.Sourceonly. No name goes from a web reading toUHD.BluRay, and no name with a remux or a BluRay goes to a web reading.No new source value:
TestTypedProducedstill walks every value the parser gives.Against qui's workaround
qui reads the same thing after the parse with
enrichUHDWebSource. On a grid of 1,320 names (every web source row, with and without a tag of each type between, dots, spaces and underscores, film and episode), the workaround fires on 1,098. rls changes no name where it does not fire.WEB,WEB-DLorWEBRiPbehind a collection, other, cut, edition or language tagWEB,WEB-DLorWEBRiPbehind a codec, an audio tag, a title word, a version, a container or a regionUHD.BluRayUHD.row (WEBSCR,WEB-HD,WebHDRiP)UHD.WEBSCR), rls keepsUHD.BluRayDownstream impact on autobrr and qui
qui can drop
enrichUHDWebSource: 25 lines removed in a local commit, not pushed. Its tests for the workaround stay unchanged and now test the parse; they haveAMZNandNFbetween. With it, qui builds and its 11 packages that use rls pass against this commit.autobrr needs no change. It builds and fails only the two tests that fail against master. A
UHD.AMZN.WEB-DLname now stores sourceUHD.WEB-DLwhere it storedUHD.BluRay, so its hash changes and a filter on sourceUHD.BluRayno longer matches it, which is the fix.Known limits
Movie.2020.2160p.UHD.NF-WEBjoins with the groupWEBbehind the streaming service and readsUHD.WEB.UHDas a word of a title in a record or a game joins across a language or an edition word:Game.UHD.German.Web-GRPreadsUHD.WEB. It readUHD.BluRaybefore, which was as wrong.Movie.2020.UHD.2160p-WEBreadsUHD.WEB, as on feat(source)!: type Source, Codec and Resolution #83. The row is in the probe set and in the list of known wrong readings.Left out on purpose
Three things were written and taken out again, because each changes more than
Sourceand we have no real name for any of them. The evidence is kept for a later change:UHD.row turning theUHDinto the resolution, so thatUHD.WEBSCRis a screener.UHDmade a resolution:Show.S01E01.UHD.HDTV.1080pgives 2160p today.Show.S01E02.2160p.UHD.AMZN.HDTVreadingHDTV. It staysUHD.BluRay, as a probe row in the list of known wrong readings.Review
An independent review compared the first version with #83 on its own names. It found a hyphen stop that turned
Movie (2020) 2160p UHD - WEB-DL x265into a BluRay, a remux with web audio read as a web source, and tests that did not hold five of the eight tag types. All fixed here: each tag type the walk passes and each guard now fails a test when taken out, 16 of 16.Type of change
How has this been tested?
tests.yamland to the probe sets, and the removal test described above.go vet ./...,gofmt -l .with Go 1.26 and 1.27,go test ./...with the corpus present,go test -race ./..., thecmd/rlschecks and 60 s ofFuzzParseString.Checklist
go fmtand the test suite passes locallytests.yamlfor any parsing changeAI disclosure
Yes, all of it. Claude Code (Claude Fable 5.2) wrote and checked it, and a second model run reviewed it. The names in the tests are built to the shape and are not real releases.