From b59c8cbdccbc1b0cc99e4f8b853730ab6c9653a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Bell=C3=AAtre?= Date: Mon, 12 Apr 2021 15:27:39 +0200 Subject: [PATCH 1/2] Add Ausha service --- tarteaucitron.services.js | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 40b2829..750f7c2 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -3937,3 +3937,43 @@ tarteaucitron.services.woopra = { woopra.track(); } }; + +// ausha +tarteaucitron.services.ausha = { + key: "ausha", + type: "video", + name: "Ausha", + needConsent: true, + cookies: [], + js: function () { + "use strict"; + tarteaucitron.fallback(['ausha_player'], function (x) { + var player_height = x.getAttribute('data-height'), + podcast_id = x.getAttribute('data-podcast-id'), + player_id = x.getAttribute('data-player-id'), + playlist = x.getAttribute('data-playlist'), + color = x.getAttribute('data-color'); + + if (podcast_id === undefined) { + return ""; + } + + var src = 'https://player.ausha.co/index.html?podcastId=' + podcast_id + '&v=3'; + + if (playlist && playlist.length > 0) src += '&playlist=' + playlist; + if (color && color.length > 0) src += '&color=' + color.replace('#', '%23'); + if (player_id && player_id.length > 0) src += '&playerId=' + player_id; + + return ''; + }); + + tarteaucitron.addScript('//player.ausha.co/ausha-player.js', 'ausha-player'); + }, + fallback: function () { + "use strict"; + tarteaucitron.fallback(['ausha_player'], function (elem) { + elem.style.height = elem.getAttribute('data-height') + 'px'; + return tarteaucitron.engage('ausha'); + }); + } +}; From 9c53c49ea82d91fc69b4f23066448f1bafbe6780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Bell=C3=AAtre?= Date: Tue, 13 Apr 2021 16:44:21 +0200 Subject: [PATCH 2/2] Add Ausha privacy policy URI --- tarteaucitron.services.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 750f7c2..300c953 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -3943,6 +3943,7 @@ tarteaucitron.services.ausha = { key: "ausha", type: "video", name: "Ausha", + uri: "https://www.ausha.co/protection-personal-data/", needConsent: true, cookies: [], js: function () {