v0.6.357
This commit is contained in:
@@ -295,6 +295,9 @@ Work is in progress...
|
|||||||
|
|
||||||
---
|
---
|
||||||
## Version history
|
## Version history
|
||||||
|
#### v0.6.357
|
||||||
|
- remove ZERO WIDTH NO-BREAK SPACE (BOM, ZWNBSP) from stream title
|
||||||
|
|
||||||
#### v0.6.355
|
#### v0.6.355
|
||||||
- added support for ST7789 1.3' 240x240 SPI displays \
|
- added support for ST7789 1.3' 240x240 SPI displays \
|
||||||
_!!! Important !!! This display requires further development when used in conjunction with the VS1053 module. \
|
_!!! Important !!! This display requires further development when used in conjunction with the VS1053 module. \
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef options_h
|
#ifndef options_h
|
||||||
#define options_h
|
#define options_h
|
||||||
|
|
||||||
#define VERSION "0.6.355"
|
#define VERSION "0.6.357"
|
||||||
|
|
||||||
/*******************************************************
|
/*******************************************************
|
||||||
DO NOT EDIT THIS FILE.
|
DO NOT EDIT THIS FILE.
|
||||||
|
|||||||
@@ -3602,6 +3602,7 @@ void Audio::showstreamtitle(const char* ml) {
|
|||||||
uint8_t pos = 12; // remove "StreamTitle="
|
uint8_t pos = 12; // remove "StreamTitle="
|
||||||
if(sTit[pos] == '\'') pos++; // remove leading \'
|
if(sTit[pos] == '\'') pos++; // remove leading \'
|
||||||
if(sTit[strlen(sTit) - 1] == '\'') sTit[strlen(sTit) -1] = '\0'; // remove trailing \'
|
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);
|
if(audio_showstreamtitle) audio_showstreamtitle(sTit + pos);
|
||||||
}
|
}
|
||||||
free(sTit);
|
free(sTit);
|
||||||
|
|||||||
@@ -537,6 +537,7 @@ void Audio::showstreamtitle(const char* ml) {
|
|||||||
uint8_t pos = 12; // remove "StreamTitle="
|
uint8_t pos = 12; // remove "StreamTitle="
|
||||||
if(sTit[pos] == '\'') pos++; // remove leading \'
|
if(sTit[pos] == '\'') pos++; // remove leading \'
|
||||||
if(sTit[strlen(sTit) - 1] == '\'') sTit[strlen(sTit) -1] = '\0'; // remove trailing \'
|
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);
|
if(audio_showstreamtitle) audio_showstreamtitle(sTit + pos);
|
||||||
}
|
}
|
||||||
free(sTit);
|
free(sTit);
|
||||||
|
|||||||
Reference in New Issue
Block a user