Page 1 of 1

Webradio Delete station issue (Solved)

PostPosted: 10 Nov 2016, 11:08
by irishwill2008
I created a webradio and deleted it and it deleted the file in webradio folder .. GREAT! As its meant to, but it did not remove the index within the webradio section UI so i went to Sources and rebuilt the library and it removed it from the showing but when i reload the pi it comes back? But no file is there so i am guessing its in the encrypted db file? Indexed there some how?

When i go to edit to see if the link is there, comes back false?

Any idea how to fix this? Thanks!

Also, how do i decrypt that DB file to view the contents and re - encrypt?
Thanks.

Re: Deleting webradio deletes file but keeps it listed after

PostPosted: 10 Nov 2016, 16:25
by hondagx35
Hi,

works for me without any issues.
I'm using latest RP2/3 image here.

Seems like you have disabled auto update in mpd settings.


Frank

Re: Deleting webradio deletes file but keeps it listed after

PostPosted: 10 Nov 2016, 18:06
by irishwill2008
Hi Frank,

That was indeed disabled, i enabled it there now but didnt fix the issue.

The station appears there but when i click edit it says false? With that said, when i press delete it just kicks me back to the tiles screen (no updating appearing on the tab) and once i go back into webradio its still there!

If i edit and put lets say Facebook.com and save, if i hit delete it deletes it and doesnt display in webradio (Yay moment!!) but again.. Once i reboot it comes back?? But before i reboot.. there is no .pls related to it :/ So it should NOT come back.. When i reboot and check the folder again, STILL no .pls? But yet it is showing in webradio panel but this time if i press edit, it comes back false again?

I guess the false is showing because it did INDEED delete the .pls and because of that it cant pull the url from a file that doesnt exist? So its coming back false.

What i dont get is, why is the station appearing still when there is no .pls?
Is it logged somewhere? Indexed somewhere?

Let me know thanks!

Re: Deleting webradio deletes file but keeps it listed after

PostPosted: 10 Nov 2016, 18:41
by hondagx35
Hi,

it is stored in the database.

Code: Select all
root@runeaudio(rw):~# redis-cli hgetall webradios
1) "Bayern 3"
2) "http://br_mp3-bayern3_m.akacast.akamaistream.net/7/442/142692/v1/gnl.akacast.akamaistream.net/br_mp3_bayern3_m"
3) "Antenne Bayern Classic Rock Live"
4) "http://mp3channels.webradio.antenne.de/classic-rock-live\n"
5) "Delicious Agony"
6) "http://HearMe.fm:8271/stream"


You can delete it like this:
Code: Select all
redis-cli hdel webradios "Bayern 3"


Frank

Re: Deleting webradio deletes file but keeps it listed after

PostPosted: 11 Nov 2016, 13:37
by irishwill2008
Worked!
When i did the command:
Code: Select all
redis-cli hgetall webradios
it listed the station that wouldnt delete and did the command and bam! Gone.
Perfect, thanks a million Frank!

Still not sure what caused the issue as i can delete others perfectly, that was the only issue i had with that.
Anywho, solved now so im happy.
Cheers!

Regards,
Will.

Re: Webradio Delete station issue (Solved)

PostPosted: 08 Jan 2018, 16:40
by irishwill2008
I seem to be having the same issue again. Strange thing is, in "redis-cli hgetall webradios" i dont see a record for my track not deleting!

I have an entry i made for testing called "ffff" and whenever i try delete it just reappears! No listing in redis under webradio nor is there a listening for a .pls in /mnt/MPD/Webradio. My question now is.. Is there somewere else or something that stores these values other than the two listed? Somethings storing this and not allowing it to delete!

Any help appreciated.

Re: Webradio Delete station issue (Solved)

PostPosted: 08 Jan 2018, 17:20
by hondagx35
Hi Will,

Is there somewere else or something that stores these values other than the two listed?

No, see here https://github.com/hondagx35/RuneUI/blob/master/app/libs/runeaudio.php#L2881

Frank

Re: Webradio Delete station issue (Solved)

PostPosted: 09 Jan 2018, 12:55
by irishwill2008
Hi Frank,

Thanks for the reply! Yeah i had a feeling thats all but im not sure why i am seeing this record when its not stored anywhere? Matter of fact, its gone now! But thats the weird thing, it comes and goes! Not sure if its a strange cache issue?

Re: Webradio Delete station issue (Solved)

PostPosted: 09 Jan 2018, 14:51
by rern
Hi Will,

It could be MPD was not yet refreshed for new data.
If it happened again, try:
Code: Select all
mpc update Webradio


Webradio Import addon does:
- delete webradio database
- get data from *.pls files
- write data to database
- update MPD data

Re: Webradio Delete station issue (Solved)

PostPosted: 09 Jan 2018, 17:54
by hondagx35
Hi ,

Rune executes a "mpd update Webradios" after each add, edit or delete.

Frank