cfb40 / app /constants.py
andytaylor-smg's picture
adding analyze tab
9b5489a
"""
Constants and configuration values for the CFB Video Finder app.
Contains paths, team lists, and region metadata used across the application.
"""
from pathlib import Path
# Directory for storing region configurations
CONFIG_DIR = Path("data/config")
CONFIG_DIR.mkdir(parents=True, exist_ok=True)
# Output directory for templates
OUTPUT_DIR = Path("output")
OUTPUT_DIR.mkdir(exist_ok=True)
# Directory for storing downloaded videos
VIDEO_STORAGE_DIR = Path("videos")
VIDEO_STORAGE_DIR.mkdir(exist_ok=True)
# Directory containing team logos (use absolute path relative to this module)
LOGO_DIR = Path(__file__).parent / "assets" / "logos"
# Hardcoded list of available teams (fetched from nfl-video.com on 2026-01-29)
# This avoids slow requests to nfl-video.com on every app startup
AVAILABLE_TEAMS = [
"Alabama",
"Arizona",
"Arizona State",
"Arkansas",
"Army",
"Auburn",
"Baylor",
"Boston College",
"Byu",
"California",
"Cincinnati",
"Clemson",
"Colorado",
"Duke",
"Florida",
"Florida State",
"Georgia",
"Georgia Tech",
"Houston",
"Illinois",
"Indiana",
"Iowa",
"Iowa State",
"Kansas",
"Kansas State",
"Kentucky",
"Louisville",
"Lsu",
"Maryland",
"Miami",
"Michigan",
"Michigan State",
"Minnesota",
"Mississippi State",
"Missouri",
"Nc State",
"Nebraska",
"North Carolina",
"Northwestern",
"Notre Dame",
"Ohio State",
"Oklahoma",
"Oklahoma State",
"Ole Miss",
"Oregon",
"Oregon State",
"Penn State",
"Pittsburgh",
"Purdue",
"Rutgers",
"Smu",
"South Carolina",
"Stanford",
"Syracuse",
"Tcu",
"Tennessee",
"Texas",
"Texas A&M",
"Texas Tech",
"Ucf",
"Ucla",
"Usc",
"Utah",
"Vanderbilt",
"Virginia",
"Virginia Tech",
"Wake Forest",
"Washington",
"Washington State",
"West Virginia",
"Wisconsin",
]
# Color mapping for different region types (RGBA for transparency)
REGION_COLORS = {
"scorebug": (255, 0, 0, 100), # Red
"play_clock": (0, 255, 0, 100), # Green
"home_timeout": (0, 0, 255, 100), # Blue
"away_timeout": (255, 165, 0, 100), # Orange
"flag": (255, 0, 255, 100), # Magenta
}
# Region display names
REGION_NAMES = {
"scorebug": "Scorebug",
"play_clock": "Play Clock",
"home_timeout": "Home Team Timeouts",
"away_timeout": "Away Team Timeouts",
"flag": "FLAG Region (1st & 10)",
}