This commit is contained in:
e2002
2022-07-03 17:29:13 +03:00
parent 76c4427fb2
commit 250231db72
4 changed files with 6 additions and 1 deletions

View File

@@ -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. \

View File

@@ -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.

View File

@@ -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);

View File

@@ -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);