Skip to content

Commit 33037f7

Browse files
authored
Merge pull request #17 from Deekerman/claude/epg-game-notifications-Ry3Va
Fix game-thumbs URL: logo.png for logo type, cover.png for cover type
2 parents e52b5e1 + cc661fc commit 33037f7

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

game_thumbs.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,13 @@ def _to_pascal(name: str) -> str:
3737

3838

3939
def _build_url(league_code: str, away: str, home: str, image_type: str, style: str) -> str:
40-
logo = "true" if image_type == "logo" else "false"
40+
if image_type == "cover":
41+
filename, logo = "cover.png", "false"
42+
else:
43+
filename, logo = "logo.png", "true"
4144
return (
4245
f"{GAME_THUMBS_BASE}/{league_code}/{away}/{home}"
43-
f"/thumb.png?style={style}&logo={logo}&aspect=16-9"
46+
f"/{filename}?style={style}&logo={logo}&aspect=16-9"
4447
)
4548

4649

0 commit comments

Comments
 (0)