1. 21 Feb, 2026 8 commits
    • Stefy Lanza (nextime / spora )'s avatar
      Fix video overlay template sequence to use configured templates from dashboard · c56054b0
      Stefy Lanza (nextime / spora ) authored
      - Add _get_outcome_template() method to fetch template assignments from database
      - Update _handle_play_video_match() to use configured template for UNDER/OVER videos
      - Update _play_result_video() to use configured template for result videos
      - Update _switch_to_result_overlay() to use new template lookup method
      - Templates are now correctly loaded based on dashboard configuration
      - Falls back to match_video.html for UNDER/OVER and results.html for other outcomes
      c56054b0
    • Stefy Lanza (nextime / spora )'s avatar
      Fix multiple today fixtures creation and reset fixtures foreign key error · d908463e
      Stefy Lanza (nextime / spora ) authored
      - Fix _get_or_create_today_fixture() to use created_at as fallback when start_time is NULL
      - Replace _initialize_new_fixture() calls with _get_or_create_today_fixture() in _handle_start_game()
      - Fix reset_fixtures() to use raw SQL DELETE statements for proper MySQL foreign key handling
      - Delete tables in correct order: extraction_stats, bets_details, bets, match_outcomes, matches, match_outcomes_templates, matches_templates
      d908463e
    • Stefy Lanza (nextime / spora )'s avatar
      Fix: Handle matches with NULL start_time in cleanup logic · 074153e0
      Stefy Lanza (nextime / spora ) authored
      - Updated _cleanup_old_incomplete_matches() to also check matches with NULL start_time using created_at as fallback
      - Updated _get_yesterday_incomplete_matches() to also check matches with NULL start_time using created_at as fallback
      - Added detailed debug logging to help diagnose date/time issues
      - This fixes the issue where matches from old fixtures were not being detected because their start_time was NULL or recently synced
      074153e0
    • Stefy Lanza (nextime / spora )'s avatar
      Fix handling of incomplete matches from past days on startup · e4010d4e
      Stefy Lanza (nextime / spora ) authored
      - Add _cleanup_old_incomplete_matches() to mark 2+ day old matches as failed
      - Add _get_yesterday_incomplete_matches() to detect yesterday's incomplete matches
      - Add _get_or_create_today_fixture() to ensure new matches go to today's fixture
      - Modify initialize() to process past incomplete matches before starting
      - Modify _handle_start_game() to use pre-computed yesterday_fixture_id
      - Add yesterday_fixture_id attribute to track yesterday's fixture for completion
      
      This ensures:
      - Matches from 2+ days ago are marked as failed with bet cancellation
      - Yesterday's incomplete matches are played to completion first
      - New matches are created in today's fixture, not yesterday's
      e4010d4e
    • Stefy Lanza (nextime / spora )'s avatar
      Add cleanup for incomplete matches from past days · 15d06c2c
      Stefy Lanza (nextime / spora ) authored
      - Add _cleanup_old_incomplete_matches() to close matches 2+ days old as 'failed'
      - Add _get_yesterday_incomplete_matches() to find yesterday's incomplete matches
      - Add _get_or_create_today_fixture() to ensure new matches go to today's fixture
      - Add yesterday_fixture_id attribute to track yesterday's fixture for completion
      - Modify initialize() to process past incomplete matches before starting
      - Pre-create today's fixture when yesterday's incomplete matches are found
      - Ensure new matches are created in today's fixture, not yesterday's
      15d06c2c
    • Stefy Lanza (nextime / spora )'s avatar
      Implement Video Phase State Machine for HLS synchronization · d7d1b0a7
      Stefy Lanza (nextime / spora ) authored
      - Add video phase tracking in RTSPStreamer (idle, intro, match, result)
      - Implement HLS delay compensation for overlay template synchronization
      - Fix results template not showing after match video ends
      - Add phase transition handling with configurable delay compensation
      - Update overlay API endpoint to include video phase state
      - Add phaseTransitionTimer for delayed template changes
      
      This ensures overlay templates are synchronized with HLS video playback
      by compensating for FFmpeg encoding and web player buffering delays.
      d7d1b0a7
    • Stefy Lanza (nextime / spora )'s avatar
      Fix match result display: use display_result field to show actual fight winner... · 02284075
      Stefy Lanza (nextime / spora ) authored
      Fix match result display: use display_result field to show actual fight winner instead of UNDER/OVER
      02284075
    • Stefy Lanza (nextime / spora )'s avatar
  2. 20 Feb, 2026 27 commits
  3. 19 Feb, 2026 1 commit