From 15cfffff45a20d0df26bcb83eeae045171e8d945 Mon Sep 17 00:00:00 2001 From: Matthias Kestenholz Date: Tue, 27 Aug 2024 17:48:30 +0200 Subject: [PATCH] Add support for embedding SRF content --- feincms3_cookiecontrol/embedding.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/feincms3_cookiecontrol/embedding.py b/feincms3_cookiecontrol/embedding.py index cd65a11..4b4b68c 100644 --- a/feincms3_cookiecontrol/embedding.py +++ b/feincms3_cookiecontrol/embedding.py @@ -3,7 +3,7 @@ from django.utils.html import format_html from django.utils.text import slugify from django.utils.translation import pgettext, pgettext_lazy -from feincms3.embedding import embed_vimeo, embed_youtube +from feincms3.embedding import embed_vimeo, embed_youtube, embed_srf __all__ = ["embed", "wrap"] @@ -22,6 +22,11 @@ "title": "Vimeo", "privacy_policy_url": "https://vimeo.com/privacy", }, + "srf": { + "handler": embed_srf, + "title": "SRF", + "privacy_policy_url": "https://www.srf.ch/rechtliches-datenschutzerklaerung", + }, "google": { "handler": None, "title": "Google",