From: Frédéric Péters Date: Wed, 16 Nov 2022 08:39:20 +0000 (+0100) Subject: add support for multiple players on a single episode X-Git-Tag: v2023~5 X-Git-Url: https://git.0d.be/?p=panikweb-studioneau.git;a=commitdiff_plain;h=ca08d03798c0e9d2a1c7aceaeae3138635a07473 add support for multiple players on a single episode --- diff --git a/panikweb_studioneau/templates/emissions/episode_detail.html b/panikweb_studioneau/templates/emissions/episode_detail.html index 5a1a4c0..3fa81ed 100644 --- a/panikweb_studioneau/templates/emissions/episode_detail.html +++ b/panikweb_studioneau/templates/emissions/episode_detail.html @@ -30,35 +30,44 @@ {% with text_parts=episode.text|safe|hr_split %} -{% if episode.main_sound %} + + +{% for soundfile in episode.podcastable_sounds %} +
-{% if episode.main_sound.get_external_host == 'mixcloud' %} +{% if soundfile.get_external_host == 'mixcloud' %} + src="{{ soundfile.get_external_embed_url }}&hide_cover=1&light=1"> -{% elif episode.main_sound.get_external_host == 'soundcloud' %} +{% elif soundfile.get_external_host == 'soundcloud' %} + src="{{ soundfile.get_external_embed_url }}&auto_play=false"> {% endif %}
-{% endif %} + +{% endfor %}
{{ text_parts|first|safe}}