Skip to content

Require lowercase index in processing mode values - #1982

Merged
bullmoose20 merged 1 commit into
Kometa-Team:developfrom
HoneyBearTech:fix-processing-mode-index-case
Nov 25, 2026
Merged

bullmoose20 merged 1 commit into
Kometa-Team:developfrom
HoneyBearTech:fix-processing-mode-index-case

Conversation

@HoneyBearTech

@HoneyBearTech HoneyBearTech commented Nov 22, 2026 •

Copy link
Copy Markdown

Related Issues

N/A

What type of PR is this?

  • Bug Fix (non-breaking change which fixes an issue)
  • Feature/Tweak (non-breaking change which adds new functionality or enhances existing functionality)
  • Breaking Change (fix or feature that would break any existing functionality for users)
  • Documentation Update
  • Other

Description

validateProcessingMode in processingMode.js matched index(...) case-insensitively, so the browser accepted a hand-typed INDEX(A-F). The server (library_scheduling.validate_mode and its schema extension) and Kometa's config schema both need the keyword index in lowercase. The value then failed later, when saving the schedule or starting a run with --mode.

This makes the browser check match the server:

  • The keyword index must be lowercase.
  • The range letters inside the brackets may still be either case, as the server allows. The dropdowns build index(A-F).
  • added(...) stays case-insensitive, as it is on the server.
  • The restore regex in initProcessingMode is unchanged, so a saved INDEX(...) still loads into the dropdowns.

Tests:

  • Refused: INDEX(A-F) and Index(a).
  • Accepted: index(A-F), index(a-f), index(a) and index(A-F#).
  • Restore: saved ranges still load into the dropdowns.
  • Server: a case pins that it refuses INDEX(A-F).

The new browser tests fail without the fix. npm test and pytest tests/test_library_scheduling.py pass.

Which Environment Did You Test On?

  • Local Install (Windows/Linux/Mac via python quickstart.py)
  • Windows Executable
  • Linux Executable
  • macOS Executable
  • Docker
  • Other

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Signed-off-by: Sean Stoube <31805425+HoneyBearTech@users.noreply.github.com>
@bullmoose20
bullmoose20 merged commit c18c564 into Kometa-Team:develop Nov 25, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants