Thank you for your donation!


Problem: Metadata file not cleared when disabled
#1
Hi

The metadata file is not cleared when the setting is disabled (on Moode 6.3).

Turn on Metadata file setting
Listen to BBC Radio 1
Check the metadata file contents (shows Radio 1)
Code:
pi@moode:~ $ cat /var/local/www/currentsong.txt
file=http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p
artist=Radio station
album=BBC Radio 1
title=Streaming source
coverurl=images/radio-logos/BBC Radio 1.jpg
track=
date=
composer=
encoded=VBR
bitrate=128 kbps
outrate=24 bit, 48 kHz, Stereo, 2.304 mbps
volume=38
mute=0
state=play

Turn off Metadata file setting
Check the metadata file contents (still shows Radio 1)
Code:
pi@moode:~ $ cat /var/local/www/currentsong.txt
file=http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p
artist=Radio station
album=BBC Radio 1
title=Streaming source
coverurl=images/radio-logos/BBC Radio 1.jpg
track=
date=
composer=
encoded=VBR
bitrate=128 kbps
outrate=24 bit, 48 kHz, Stereo, 2.304 mbps
volume=38
mute=0
state=play

Listen to BBC Radio 2
Check the metadata file contents (still shows Radio 1)
Code:
pi@moode:~ $ cat /var/local/www/currentsong.txt
file=http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p
artist=Radio station
album=BBC Radio 1
title=Streaming source
coverurl=images/radio-logos/BBC Radio 1.jpg
track=
date=
composer=
encoded=VBR
bitrate=128 kbps
outrate=24 bit, 48 kHz, Stereo, 2.304 mbps
volume=38
mute=0
state=play

Turn on Metadata file settings
Check the metadata file contents (now shows Radio 2)
Code:
pi@moode:~ $ cat /var/local/www/currentsong.txt
file=http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio2_mf_p
artist=Radio station
album=BBC Radio 2
title=Streaming source
coverurl=images/radio-logos/BBC Radio 2.jpg
track=
date=
composer=
encoded=VBR
bitrate=128 kbps
outrate=24 bit, 48 kHz, Stereo, 2.304 mbps
volume=38
mute=0
state=play


Adrian.
Reply
#2
It would prolly be easier to check the setting value. 0/1 = off/on

Code:
pi@rp3:~ $ sqlite3 /var/local/www/db/moode-sqlite3.db "select value from cfg_system where param='extmeta'"
0
Reply
#3
Hi Tim

Thanks for the suggestion.

Adrian.
Reply


Forum Jump: