Handle width and height placeholders in the thumbnail URL (#136227)

This commit is contained in:
Makrit 2025-01-24 07:49:33 +00:00 committed by GitHub
parent e44cfa00af
commit 6a1279611d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -122,7 +122,7 @@ class TwitchCoordinator(DataUpdateCoordinator[dict[str, TwitchUpdate]]):
stream.game_name if stream else None,
stream.title if stream else None,
stream.started_at if stream else None,
stream.thumbnail_url if stream else None,
stream.thumbnail_url.format(width="", height="") if stream else None,
channel.profile_image_url,
bool(sub),
sub.is_gift if sub else None,