Thank you for your donation!


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


Problem: Radio station logos will not be shown
#1
Hi,

I followed the instructions that logos should be displayed in the radio menue with no success.

The test i prepared should demonstrate the problem. I took the logo of the already shipped "1.FM - Blues Radio" and copied it in the file 1.FM - Bossa Nova.jpg

Then I inserted the right record is in the table cfg_radio. I queried both 1.FM stations for direct comparison:

Code:
root@moode:/home/pi# sqlite3 -header /var/local/www/db/moode-sqlite3.db "select * from cfg_radio where name like '1.FM%'"   id|station|name|permalink|logo
1|http://strm112.1.fm/blues_mobile_mp3|1.FM - Blues Radio||local
185|http://strm112.1.fm/bossanova_mobile_mp3|1.FM Bossa Nova||local
Here the files:

Code:
root@moode:/home/pi# ls -l /var/www/images/radio-logos/1.FM*
-rw-r--r-- 1 root root 27836 Jul 27 21:13 /var/www/images/radio-logos/1.FM - Blues Radio.jpg
-rw-r--r-- 1 root root 27836 Jul 27 21:13 /var/www/images/radio-logos/1.FM - Bossa Nova.jpg


In the radio menu only the default logo is displayed!

Did I miss a step?

Onurbi




root@moode:/home/pi# ls -l /var/www/images/radio-logos/1.FM*
-rw-r--r-- 1 root root 27836 Jul 27 21:13 /var/www/images/radio-logos/1.FM - Blues Radio.jpg
-rw-r--r-- 1 root root 27836 Jul 27 21:13 /var/www/images/radio-logos/1.FM - Bossa Nova.jpg
Reply
#2
Hi Onurbi,

You need to reboot after adding the row to cfg_radio. The entire table gets cached in the session during moOde startup for optimum performance.

-Tim
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
I knew I missed to mention something! Sad

I made a reboot and it did not bring the logo. Wink

Onurbi
Reply
#4
Add a 100x100 px image to /var/www/images/radio-logos/thumbs
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
(07-30-2018, 07:27 PM)Tim Curtis Wrote: Add a 100x100 px image to /var/www/images/radio-logos/thumbs

Got it!!!! The logo for "1.FM Bossa Nova" is visible now!

Now I tried it for a new Station: http://209.126.127.123:8020/live 

The name is "Bossa Jazz Brasil".

The main logos of the other stations I peeked, have sizes of 380x380 or 400x400.

I made the main bjb-logo 380x380 big.

The table record is:

186|http://209.126.127.123:8020/live|Bossa Jazz Brasil||local

The two files are named "Bossa Jazz Brasil.png". The thumb file is 100x100 pixel big. 
Please take attention that the attached thumb-File must have a different name, because the forum software wish it so! The local name is of course the same as the main logo file.

But this logo is still the default one. Strange!

Perhaps you can make a test, if you have  time.

Onurbi


Attached Files Thumbnail(s)
       
Reply


Forum Jump: