Update Ausha parameters
This commit is contained in:
parent
c2f840f0da
commit
0d7ed9e34d
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue