diff --git a/README.md b/README.md index 8dc68ff..8c0e3af 100644 --- a/README.md +++ b/README.md @@ -295,6 +295,9 @@ Work is in progress... --- ## Version history +#### v0.6.357 +- remove ZERO WIDTH NO-BREAK SPACE (BOM, ZWNBSP) from stream title + #### v0.6.355 - added support for ST7789 1.3' 240x240 SPI displays \ _!!! Important !!! This display requires further development when used in conjunction with the VS1053 module. \ diff --git a/yoRadio/options.h b/yoRadio/options.h index 9bed629..20049f5 100644 --- a/yoRadio/options.h +++ b/yoRadio/options.h @@ -1,7 +1,7 @@ #ifndef options_h #define options_h -#define VERSION "0.6.355" +#define VERSION "0.6.357" /******************************************************* DO NOT EDIT THIS FILE. diff --git a/yoRadio/src/audioI2S/Audio.cpp b/yoRadio/src/audioI2S/Audio.cpp index 49e1b3e..b12a7f5 100644 --- a/yoRadio/src/audioI2S/Audio.cpp +++ b/yoRadio/src/audioI2S/Audio.cpp @@ -3602,6 +3602,7 @@ void Audio::showstreamtitle(const char* ml) { uint8_t pos = 12; // remove "StreamTitle=" if(sTit[pos] == '\'') pos++; // remove leading \' if(sTit[strlen(sTit) - 1] == '\'') sTit[strlen(sTit) -1] = '\0'; // remove trailing \' + if(sTit[pos]==0xEF && sTit[pos+1] == 0xBB && sTit[pos+2] == 0xBF) pos+=3; // remove ZERO WIDTH NO-BREAK SPACE if(audio_showstreamtitle) audio_showstreamtitle(sTit + pos); } free(sTit); diff --git a/yoRadio/src/audioVS1053/audioVS1053Ex.cpp b/yoRadio/src/audioVS1053/audioVS1053Ex.cpp index a148d1e..ea23873 100644 --- a/yoRadio/src/audioVS1053/audioVS1053Ex.cpp +++ b/yoRadio/src/audioVS1053/audioVS1053Ex.cpp @@ -537,6 +537,7 @@ void Audio::showstreamtitle(const char* ml) { uint8_t pos = 12; // remove "StreamTitle=" if(sTit[pos] == '\'') pos++; // remove leading \' if(sTit[strlen(sTit) - 1] == '\'') sTit[strlen(sTit) -1] = '\0'; // remove trailing \' + if(sTit[pos]==0xEF && sTit[pos+1] == 0xBB && sTit[pos+2] == 0xBF) pos+=3; // remove ZERO WIDTH NO-BREAK SPACE if(audio_showstreamtitle) audio_showstreamtitle(sTit + pos); } free(sTit);