Update Ausha parameters

This commit is contained in:
Amauri CHAMPEAUX 2022-06-01 12:29:32 +02:00
parent c2f840f0da
commit 0d7ed9e34d
1 changed files with 5 additions and 0 deletions

View File

@ -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;