karawin / Ka-Radio32

esp32 version of Ka-Radio (https://github.com/karawin/Ka-Radio) by jp Cocatrix
525 stars 155 forks source link

Sys.erase not clean a playlist #79

Closed pilnikov closed 5 years ago

pilnikov commented 5 years ago

If I use sys.erase my playlist is not cleared completely, but is damaged (if use it - invalid host). It would be nice if the playlist was cleared completely.

shurikby commented 5 years ago

Press "Refresh local list" button. Playlist is clear I guess, you just see cached page.

karawin commented 5 years ago

sys.erase clean all configuration (wifi etc) and stations (playlist). It is not a good command to erase only the stations list.

Noted in https://github.com/karawin/Ka-Radio32/blob/master/Interface.md sys.erase : erase all recorded configuration and stations.

To erase the list only on the web page "edit" use the Erase all button.

But it is a good remark. If il create a serial command for that, the cache in the web will not be cleared. A refresh local list must be used. So this command is dangerous and made to start on a new clean configuration.