From e9645f5363f3697ff37fe8d53e89389e7b2e1630 Mon Sep 17 00:00:00 2001 From: Scott Rubin Date: Sat, 23 Sep 2023 23:43:14 +0000 Subject: [PATCH 1/2] Add tqdm to backfill command --- etl/management/commands/backfill_mp3.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etl/management/commands/backfill_mp3.py b/etl/management/commands/backfill_mp3.py index 562dd56..684c10b 100644 --- a/etl/management/commands/backfill_mp3.py +++ b/etl/management/commands/backfill_mp3.py @@ -1,4 +1,5 @@ import requests +import tqdm from http import HTTPStatus from django.core.management.base import BaseCommand from django.core.files.base import ContentFile @@ -17,7 +18,7 @@ def handle(self, *args, **options) -> None: upload_to = media_models.MP3.file.field.upload_to - for enclosure in enclosures: + for enclosure in tqdm.tqdm(enclosures): filename = requests.utils.urlparse( enclosure.url ).path.split("/").pop() From 6c6c0dc078cbd50ea8f809b29687e426b67ebc35 Mon Sep 17 00:00:00 2001 From: Scott Rubin Date: Sun, 24 Sep 2023 00:30:43 +0000 Subject: [PATCH 2/2] Add opengraph metadata to show detail page --- shows/templates/shows/show_detail.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/shows/templates/shows/show_detail.html b/shows/templates/shows/show_detail.html index d0cb94d..d3f6743 100644 --- a/shows/templates/shows/show_detail.html +++ b/shows/templates/shows/show_detail.html @@ -1,5 +1,14 @@ {% extends "base.html" %} {% block title %}{{ show.title }}{% endblock title %} +{% block opengraphextra %} + + {% if show.description %} + + {% endif %} + {% if show.logo %} + + {% endif %} +{% endblock opengraphextra %} {% block extrahead %} {% comment "TODO" %}