Replace the committed channels/<slug>.json files as the runtime source of truth with a local SQLite database at the repo root (clipwright.db), overridable via CLIPWRIGHT_DB. Existing JSON profiles are imported once on first bootstrap, then the store is authoritative. - add clipwright/storage/channel_profiles.py (stdlib sqlite3, WAL + lock) - add Profile/TitleRules/ThumbnailRules.to_dict() for round-tripping - load_profile/list_profiles read the store; channels_dir stays a file seam - /api/channels CRUD plus import/export endpoints - untrack channels/*.json, ignore the DB files - seed a temp DB in tests/conftest.py
46 lines
516 B
Text
46 lines
516 B
Text
# Video files
|
|
*.mp4
|
|
*.webm
|
|
*.mov
|
|
*.mkv
|
|
|
|
# YOLO model
|
|
*.pt
|
|
|
|
# Python virtual environment
|
|
.venv/
|
|
__pycache__/
|
|
*.pyc
|
|
|
|
# Runtime dirs
|
|
uploads/
|
|
output/
|
|
|
|
# Legacy channel profile source (migrated into clipwright.db on first run)
|
|
channels/
|
|
|
|
# Local SQLite runtime state
|
|
clipwright.db
|
|
clipwright.db-wal
|
|
clipwright.db-shm
|
|
|
|
# OS / IDE
|
|
.DS_Store
|
|
.idea/
|
|
.vscode/
|
|
|
|
# Secrets
|
|
.env
|
|
|
|
# Generated metadata
|
|
*_metadata.json
|
|
|
|
# Cache dirs
|
|
.cache/
|
|
.config/
|
|
.fontconfig/
|
|
.pytest_cache/
|
|
.ruff_cache/
|
|
|
|
# Agent / tool local state
|
|
.opencode/
|