Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


[SOLVED] Adding Radio stations and logos
#1
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
Reply
#2
(04-22-2018, 12:18 PM)hjheins Wrote: Hi,

Currently I am trying to add my own radio stations to Moode.
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

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
Reply
#3
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
Reply
#4
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
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
(04-22-2018, 04:06 PM)Tim Curtis Wrote: 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

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
Reply
#6
Hi,

When the radio station is playing, what url is showing in Audio info?

-Tim
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#7
Hi Tim,

audio info says:
http://mp3.ffh.de/ffhchannels/hqlounge.mp3

Hendrik-Jan
Reply
#8
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
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#9
Right,

I now have in the sqlite database:
Code:
id|station|name|permalink|logo
186|http://mp3.ffh.de/ffhchannels/hqlounge.mp3|FFH Lounge Radio||local

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
Reply
#10
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.
Reply


Forum Jump: