v0.9.550
This commit is contained in:
@@ -61,7 +61,7 @@ void audio_showstation(const char *info) {
|
||||
|
||||
void audio_showstreamtitle(const char *info) {
|
||||
DBGH();
|
||||
if (strstr(info, "Account already in use") != NULL || strstr(info, "HTTP/1.0 401") != NULL) player.setError(info);
|
||||
if (strstr(info, "Account already in use") != NULL || strstr(info, "HTTP/1.0 401") != NULL || strstr(info, "HTTP/1.1 401") != NULL) player.setError(info);
|
||||
bool p = printable(info) && (strlen(info) > 0);
|
||||
#ifdef DEBUG_TITLES
|
||||
config.setTitle(DEBUG_TITLES);
|
||||
@@ -73,7 +73,7 @@ void audio_showstreamtitle(const char *info) {
|
||||
void audio_error(const char *info) {
|
||||
//config.setTitle(info);
|
||||
player.setError(info);
|
||||
telnet.printf("##ERROR#:\t%s\n", info);
|
||||
//telnet.printf("##ERROR#:\t%s\n", info);
|
||||
}
|
||||
|
||||
void audio_id3artist(const char *info){
|
||||
@@ -88,11 +88,11 @@ void audio_id3album(const char *info){
|
||||
if(strlen(config.station.title)==0){
|
||||
config.setTitle(info);
|
||||
}else{
|
||||
char out[BUFLEN]= {0};
|
||||
strlcat(out, config.station.title, BUFLEN);
|
||||
strlcat(out, " - ", BUFLEN);
|
||||
strlcat(out, info, BUFLEN);
|
||||
config.setTitle(out);
|
||||
size_t tbs = sizeof(config.tmpBuf);
|
||||
strlcat(config.tmpBuf, config.station.title, tbs);
|
||||
strlcat(config.tmpBuf, " - ", tbs);
|
||||
strlcat(config.tmpBuf, info, tbs);
|
||||
config.setTitle(config.tmpBuf);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user