[SOLVED] Adding Radio stations and logos - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: [SOLVED] Adding Radio stations and logos (/showthread.php?tid=115) Pages:
1
2
|
[SOLVED] Adding Radio stations and logos - hjheins - 04-22-2018 Hi, Currently I am trying to add my own radio stations to Moode 4.1 I am doing this through ssh by adding .pls files to /var/lib/mpd/music/radio This part works well. (I know I can also use the web interface for this). Now I also want to add images to the stations. I downloaded the logos and I added them to /var/www/images/radio-images Next, I went into the sqlite database, and in the table cfg_radio I added an entry like such: Code: 186|http://streams.ffh.de/ffhchannels/mp3/hqlounge.m3u|FFH Lounge Radio||local Whereby I understood that if I put in "local" for the logo column, Moode will look in /var/www/images/radio-images for a file named as in the column "name". The issue: I do not get to see the logo of the radio station in the web interface when it plays. what am I doing wrong please? thanks, Hendrik-Jan RE: Adding Radio stations and logos - TheOldPresbyope - 04-22-2018 (04-22-2018, 12:18 PM)hjheins Wrote: Hi, Hi, Hendrik-Jan The magic happens in /var/www/inc/playerlib.php where code maps your example name "FFH Lounge Radio" to the logo file "FFH Lounge Radio.png" in the directory /var/www/images/radio-logos So, are your logo files .png files and are they in /var/www/images/radio-logos (not radio-images)? Regards, Kent RE: Adding Radio stations and logos - hjheins - 04-22-2018 Hi Kent, indeed the files are in /radio-logos (my bad, sorry). I created 2 new radio stations. 1 has a .png file, and 1 has a.jpg file neither of them seems to work... thanks, Hendrik-Jan RE: Adding Radio stations and logos - Tim Curtis - 04-22-2018 Hi, I think this might be cuz your url in the sql table is the playlist url and not the direct stream url for the station. -Tim RE: Adding Radio stations and logos - hjheins - 04-22-2018 (04-22-2018, 04:06 PM)Tim Curtis Wrote: Hi, Hi Tim, could be, but this is actually also what I have in the .pls file: FFH Lounge Radio.pls : [code] [playlist] Title1=FFH Lounge Radio File1=http://streams.ffh.de/ffhchannels/mp3/hqlounge.m3u File2=http://mp3.ffh.de/ffhchannels/hqlounge.mp3 NumberOfEntries=2 [/code What should I put in the db? thanks, Hendrik-Jan RE: Adding Radio stations and logos - Tim Curtis - 04-22-2018 Hi, When the radio station is playing, what url is showing in Audio info? -Tim RE: Adding Radio stations and logos - hjheins - 04-22-2018 Hi Tim, audio info says: http://mp3.ffh.de/ffhchannels/hqlounge.mp3 Hendrik-Jan RE: Adding Radio stations and logos - Tim Curtis - 04-22-2018 The radio logo feature uses the playable url and thus the entry in the sql table needs to be: http://mp3.ffh.de/ffhchannels/hqlounge.mp3 -Tim RE: Adding Radio stations and logos - hjheins - 04-22-2018 Right, I now have in the sqlite database: Code: id|station|name|permalink|logo In /var/www/images/radio-logos I have a file called: FFH Lounge Radio.png But I still do not get the image. What am I missing? thanks, Hendrik-Jan RE: Adding Radio stations and logos - hjheins - 04-22-2018 OK, I needed a reboot to actually make this "stick". @Tim: could you tell me why having the actual station source link makes that much of a difference? thanks, Hendrik-Jan P.S. if you are ok with this, I would like to make a small tutorial how to add radio stations with images. |