From 2e64079c382d9092add4f16b47a09f0395eb1f2e Mon Sep 17 00:00:00 2001 From: ale Date: Wed, 27 Aug 2025 16:13:59 +0200 Subject: [PATCH] download title Signed-off-by: ale --- src/hooks/useStreamData.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/useStreamData.js b/src/hooks/useStreamData.js index bafeae0..7f2b973 100644 --- a/src/hooks/useStreamData.js +++ b/src/hooks/useStreamData.js @@ -103,11 +103,11 @@ const useStreamData = () => { link: json?.media['@ref']?.replace('/musica', 'https://radio.manalejandro.com') || '', trackInfo })); - } else if (!json?.media) { + } else if (!json?.media && json?.title) { setStreamInfo(prev => ({ ...prev, title: 'Stream Radio', - link: '', + link: json?.title?.replace('/musica', 'https://radio.manalejandro.com') || '', trackInfo: 'Now Playing: Title not available' })); }