Add image dimensions to models, and add backfill command
This commit is contained in:
parent
85bdf572c5
commit
4727657285
7 changed files with 299 additions and 7 deletions
|
|
@ -13,7 +13,6 @@ from django.utils import timezone
|
|||
if TYPE_CHECKING:
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
TWITCH_BOX_ART_HOST = "static-cdn.jtvnw.net"
|
||||
TWITCH_BOX_ART_PATH_PREFIX = "/ttv-boxart/"
|
||||
TWITCH_BOX_ART_SIZE_PATTERN: re.Pattern[str] = re.compile(r"-(\{width\}|\d+)x(\{height\}|\d+)(?=\.[A-Za-z0-9]+$)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue