Add two new sizes for itch.io banners

"banner_med" is 60% size (189, 150)
"banner_small" is 30% size (95, 75)

The original (315, 250) is still "banner" for compatibility.
This commit is contained in:
Daniel Johnson 2023-12-07 18:53:27 -05:00 committed by Mathieu Comandon
parent efba4a7a53
commit e5e1c64c17

View file

@ -42,6 +42,16 @@ class ItchIoCover(ServiceMedia):
return
class ItchIoCoverMedium(ItchIoCover):
"""itch.io game cover, at 60% size"""
size = (189, 150)
class ItchIoCoverSmall(ItchIoCover):
"""itch.io game cover, at 30% size"""
size = (95, 75)
class ItchIoGame(ServiceGame):
"""itch.io Game"""
service = "itchio"
@ -82,6 +92,8 @@ class ItchIoService(OnlineService):
drm_free = True
has_extras = True
medias = {
"banner_small": ItchIoCoverSmall,
"banner_med": ItchIoCoverMedium,
"banner": ItchIoCover,
}
default_format = "banner"