mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 21:33:00 +00:00
channel logo movement
This commit is contained in:
@@ -195,7 +195,12 @@ class BaseMiLBManager:
|
|||||||
self.display_manager.update_display()
|
self.display_manager.update_display()
|
||||||
|
|
||||||
# Format game date and time
|
# 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')
|
timezone_str = self.config.get('timezone', 'UTC')
|
||||||
try:
|
try:
|
||||||
tz = pytz.timezone(timezone_str)
|
tz = pytz.timezone(timezone_str)
|
||||||
|
|||||||
@@ -722,6 +722,9 @@ class OddsTickerManager:
|
|||||||
logo_y = (height - broadcast_logo.height) // 2
|
logo_y = (height - broadcast_logo.height) // 2
|
||||||
logger.debug(f"Pasting broadcast logo at ({int(current_x)}, {logo_y})")
|
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)
|
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
|
return image
|
||||||
|
|||||||
Reference in New Issue
Block a user