From 0d7ed9e34de285102887f80e1e6a0705849dd826 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Wed, 1 Jun 2022 12:29:32 +0200 Subject: [PATCH] Update Ausha parameters --- tarteaucitron.services.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index c7eb60c..846df09 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -4602,6 +4602,7 @@ tarteaucitron.services.ausha = { podcast_id = x.getAttribute('data-podcast-id'), player_id = x.getAttribute('data-player-id'), playlist = x.getAttribute('data-playlist'), + useshowid = x.getAttribute('data-useshowid'), color = x.getAttribute('data-color'); if (podcast_id === undefined) { @@ -4610,6 +4611,10 @@ tarteaucitron.services.ausha = { var src = 'https://player.ausha.co/index.html?podcastId=' + podcast_id + '&v=3'; + if (useshowid == "1") { + src = 'https://player.ausha.co/index.html?showId=' + 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;