Aither: fix language requirements#1264
Conversation
|
Thanks for taking the time to contribute to this project. Upload Assistant is currently in a complete rewrite, and no new development is being conducted on this python source at this time. If you have come this far, please feel free to leave open, any pull requests regarding new sites being added to the source, as these can serve as the baseline for later conversion. If your pull request relates to a critical bug, this will be addressed in this code base, and a new release published as needed. If your pull request only addresses a quite minor bug, it is not likely to be addressed in this code base. Details for the new code base will follow at a later date. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdds an asynchronous language requirements check call into AITHER.get_additional_checks for non-BDMV/DVD discs. The change causes AITHER to return False immediately when COMMON.check_language_requirements fails (including when the original language requirement is unmet), altering control flow before the existing valid_mi check. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 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 unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/trackers/AITHER.py`:
- Around line 29-35: In get_additional_checks, fix the malformed if by adding
the missing colon and a body that enforces the requirement: call await
self.common.check_language_requirements(...) and if it returns False set
should_continue = False (or return False immediately) when meta['is_disc'] is
not in ["BDMV","DVD"]; ensure the await is used and the function returns the
final should_continue (or returns False early) so the check actually blocks
uploads when it fails.
https://aither.cc/pages/1
Summary by CodeRabbit