mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-17 23:53:00 +00:00
channel logo movement
This commit is contained in:
@@ -195,7 +195,12 @@ class BaseMiLBManager:
|
||||
self.display_manager.update_display()
|
||||
|
||||
# Format game date and time
|
||||
game_time = datetime.fromisoformat(game_data['start_time'].replace('Z', '+00:00'))
|
||||
game_time_str = game_data.get('start_time')
|
||||
if not game_time_str or 'TBD' in game_time_str:
|
||||
game_date = "TBD"
|
||||
game_time_str = ""
|
||||
else:
|
||||
game_time = datetime.fromisoformat(game_time_str.replace('Z', '+00:00'))
|
||||
timezone_str = self.config.get('timezone', 'UTC')
|
||||
try:
|
||||
tz = pytz.timezone(timezone_str)
|
||||
|
||||
@@ -722,6 +722,9 @@ class OddsTickerManager:
|
||||
logo_y = (height - broadcast_logo.height) // 2
|
||||
logger.debug(f"Pasting broadcast logo at ({int(current_x)}, {logo_y})")
|
||||
image.paste(broadcast_logo, (int(current_x), logo_y), broadcast_logo if broadcast_logo.mode == 'RGBA' else None)
|
||||
elif not broadcast_logo:
|
||||
# Add padding even if there's no logo to match total_width calculation
|
||||
current_x += h_padding
|
||||
|
||||
|
||||
return image
|
||||
|
||||
Reference in New Issue
Block a user