Skip to content

Add constants module for comic archive file extensions - #235

Merged
bpepple merged 3 commits into
masterfrom
constants
Jun 25, 2026
Merged

Add constants module for comic archive file extensions#235
bpepple merged 3 commits into
masterfrom
constants

Conversation

@bpepple

@bpepple bpepple commented Jun 25, 2026

Copy link
Copy Markdown
Member

Summary

  • Add darkseid/constants.py defining named constants for all supported comic archive extensions (.cb7, .cbr, .cbt, .cbz, .pdf)
  • Replace hardcoded extension strings in ArchiverFactory (both _ARCHIVER_MAP and clear_registry) with the new constants
  • Replace hardcoded extension strings in Comic (PDF page size check and CBZ format check) with the new constants
  • Replace hardcoded glob patterns in get_recursive_filelist with patterns derived from the new constants

bpepple added 3 commits June 25, 2026 10:43
Replace hardcoded extension strings across factory.py, comic.py, and utils.py with named constants from a new darkseid/constants.py module.
@bpepple bpepple self-assigned this Jun 25, 2026
@bpepple bpepple added the chore Miscellaneous drudgery label Jun 25, 2026
@bpepple
bpepple merged commit 141e1b0 into master Jun 25, 2026
13 checks passed
@bpepple
bpepple deleted the constants branch June 25, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Miscellaneous drudgery

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant