logger.info(f"Using stored under_over_result '{match.under_over_result}' for match {match_id}")
returnmatch.under_over_result
# If the main result is already UNDER or OVER, return it
ifmain_resultin['UNDER','OVER']:
logger.info(f"DEBUG _determine_under_over_result: Main result '{main_result}' is UNDER/OVER, returning it")
returnmain_result
logger.warning(f"DEBUG _determine_under_over_result: No stored under_over_result found for match {match_id}, main_result='{main_result}' - this should not happen!")
# Check if there are winning UNDER or OVER bets for this match
logger.info(f"Sent PLAY_VIDEO_RESULTS for fixture {fixture_id}, match {match_id}, result {result}, under_over {under_over_result}")
logger.info(f"Sent PLAY_VIDEO_RESULTS for fixture {fixture_id}, match {match_id}, result {result}, under_over {under_over_result}, winning_outcomes {winning_outcomes}")
exceptExceptionase:
logger.error(f"Failed to send PLAY_VIDEO_RESULTS: {e}")
@@ -4269,7 +4281,7 @@ class QtVideoPlayer(QObject):
'is_result_video':True
}
logger.info(f"Sending results data to overlay: {overlay_data}")
logger.info(f"Sending results data to overlay: outcome={main_result}, under_over={under_over_result}, winning_outcomes_count={len(winning_outcomes_list)}")
# Play the result video with results overlay template