This commit is contained in:
e2002
2022-04-11 13:18:33 +03:00
parent 520b3455d1
commit b840b4418a
41 changed files with 661 additions and 1131 deletions

View File

@@ -1,6 +1,6 @@
void audio_info(const char *info) {
if(config.store.audioinfo) telnet.printf("##AUDIO.INFO#: %s\n", info);
if (strstr(info, "failed!") != NULL || strstr(info, "404") != NULL) {
if (strstr(info, "failed!") != NULL || strstr(info, " 404") != NULL) {
config.setTitle("[request failed]");
//config.setTitle(info);
player.mode = STOPPED;
@@ -28,7 +28,6 @@ bool printable(const char *info) {
void audio_showstation(const char *info) {
if (strlen(info) > 0) {
bool p = printable(info);
//display.title(p?info:"*****");
config.setTitle(p?info:"*****");
netserver.requestOnChange(TITLE, 0);
}
@@ -37,7 +36,6 @@ void audio_showstation(const char *info) {
void audio_showstreamtitle(const char *info) {
if (strlen(info) > 0) {
bool p = printable(info);
//display.title(p?info:"*****");
config.setTitle(p?info:"*****");
netserver.requestOnChange(TITLE, 0);
}