jailsonsb2 / Radioplayer_api

Single / multi-station radio player built with HTML, CSS, and JavaScript. This player dynamically fetches song information and offers the flexibility to use a local API or a pre-configured web-based API.
https://radioplayer.icu
0 stars 0 forks source link

Metadata #4

Closed retrodjradio closed 1 month ago

retrodjradio commented 1 month ago

Zdravím,

po 7 dnech perfektního fungování z ničeho nic nejdou Metadata, na index.html se nezobrazí název skladby ani internet, soubory nowplaying.txt a artwork.jpg fungují správně, opravdu už si nevím rady, děkuji moc za pomoc, retro dj radio na webu https://retrodjradio.cz

Hello,

after 7 days of perfect functioning, Metadata is gone, index.html does not show track name or internet, files nowplaying.txt and artwork.jpg work correctly, I really don't know anymore, thank you very much for your help, retro dj radio on the website https ://retrodjradio.cz

jailsonsb2 commented 1 month ago

image

The Streamafrica API has been down since yesterday, but that's okay. You can easily switch to my API by simply entering the main.js file that is located on your server at https://retrodjradio.cz/js/main.js. You will need to edit this file and where the line is as shown in the image, it should look like this:

const API_KEY_LYRICS = "1637b78dc3b129e6843ed674489a92d0"; const API_URL = "https://twj.es/radio_info/?radio_url="; //const API_URL = "https://api-v2.streamafrica.net/icyv2?url="; const TIME_TO_REFRESH = window?.streams?.timeRefresh || 10000;

jailsonsb2 commented 1 month ago

Alternatively, you can simply edit the section in your index as shown in the image below,

image

https://twj.es/radio_info/?radio_url=https://icecast1.play.cz/retrodjradio.mp3

image

Choose one of the 2 alternatives