feat(NST): update langue to new allowed values (Français, VF, VFF, VF… #98
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
javascript
python
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
djangonux/Upload-Assistant!98
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/nst-langue-values"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
…I, VFQ)
NST dropped Multi, Anglais, VOSTFR, VFSTFR, Muet from their langue field. Rewrite _detect_nst_langue to detect VF variant tags (.VFF., .VFQ., .VFI., .VF2., .VOF., .MULTI.VFF. etc.) from the release name, falling back to audio_languages for generic Français. Update all tests accordingly.
Summary by CodeRabbit
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID:
6f743895-d45e-4d2a-a182-7c0e4972b178📥 Commits
Reviewing files that changed from the base of the PR and between
eaec6456e5and3d421a79eb.📒 Files selected for processing (2)
src/trackers/NST.pytests/test_nst.py✅ Files skipped from review due to trivial changes (1)
📝 Walkthrough
Walkthrough
Redesigned NST's
_detect_nst_langue()to derivelanguefrom VF-related variant tags embedded in release names (VFF, VFQ, VFI, VF, or Français). Removed prior outputsMulti,VOSTFR, andAnglais, and reduced reliance onaudio_languagesfor English/Multi detection.Changes
src/trackers/NST.py_detect_nst_langue()and updatedget_additional_data()mapping: prioritize explicit name-embedded VF variants (VFF,VFQ,VFI), then genericVFvariants, mapVOF/FRENCH/TRUEFRENCHtoFrançais, handleMULTIby extracting VF variant or defaulting toVF. RemovedMulti/VOSTFR/Anglaisoutputs;audio_languagesonly used for French aliases.tests/test_nst.pyTestDetectNstLangueexpectations to assertVFF,VFQ,VFI,VF, andFrançaismappings; removed assertions forMulti,VOSTFR, andAnglais. Adjusted additional-data test to expectlangue == "VFF"forMULTi.VFF...cases.Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
_detect_nst_languelogic to expand recognized French alias codes and tag handling.🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing Touches
📝 Generate docstrings
🧪 Generate unit tests (beta)
fix/nst-langue-valuesThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands and usage tips.Actionable comments posted: 1
🧹 Nitpick comments (1)
🤖 Prompt for all review comments with AI agents
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID:
efb015c9-7087-46f8-a70f-78851f35f93c📥 Commits
Reviewing files that changed from the base of the PR and between
d0584a2652andeaec6456e5.📒 Files selected for processing (2)
src/trackers/NST.pytests/test_nst.py@ -368,42 +368,50 @@ class NST(FrenchTrackerMixin, UNIT3D):⚠️ Potential issue | 🟠 Major
Handle
.VF.andVF{n}markers, not onlyVF2.Line [392] currently normalizes only
VF2. Names containing.VF.or.VF3/.VF4can fall through to"", producing an invalid/emptylanguedespite being French-dub variants.🐛 Proposed fix
🤖 Prompt for AI Agents
✅ Addressed in commit
3d421a7