Skip to content
Snippets Groups Projects
Commit 55aa7883 authored by David Trattnig's avatar David Trattnig
Browse files

fix: file media query

parent 1c0ac660
No related branches found
No related tags found
No related merge requests found
Pipeline #8607 passed
......@@ -37,7 +37,15 @@
/* Callback to process the API response */
function processResponse(data) {
console.log('CBA API response:', data);
urlMedia = data[0]?.source_url;
// Get media file URL
let media;
data.forEach((element) => {
if (element.media_type == 'file') {
media = element;
}
});
urlMedia = media?.source_url;
let trackData = {
name: episode.note.title,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment