diff --git a/README.md b/README.md index beb7ec8..f2c2fbf 100644 --- a/README.md +++ b/README.md @@ -226,6 +226,11 @@ Work is in progress... --- ## Version history +#### v0.9.161 +- fixed errors 403 Account already in use, 401 Authorization required +- fixed bitrate icon overflow bug +- fix html markup errors + #### v0.9.156 - fixed bug of random change of playback location when playing files from SD card diff --git a/yoRadio/data/www/style.css.gz b/yoRadio/data/www/style.css.gz index a6eb418..34c2033 100644 Binary files a/yoRadio/data/www/style.css.gz and b/yoRadio/data/www/style.css.gz differ diff --git a/yoRadio/src/audioI2S/Audio.cpp b/yoRadio/src/audioI2S/Audio.cpp index a47a4c1..7b8a534 100644 --- a/yoRadio/src/audioI2S/Audio.cpp +++ b/yoRadio/src/audioI2S/Audio.cpp @@ -461,9 +461,11 @@ bool Audio::connecttohost(const char* host, const char* user, const char* pwd) { strcat(rqh, hostwoext); strcat(rqh, "\r\n"); strcat(rqh, "Icy-MetaData:1\r\n"); - strcat(rqh, "Authorization: Basic "); - strcat(rqh, authorization); - strcat(rqh, "\r\n"); + if (auth > 0) { + strcat(rqh, "Authorization: Basic "); + strcat(rqh, authorization); + strcat(rqh, "\r\n"); + } strcat(rqh, "Accept-Encoding: identity;q=1,*;q=0\r\n"); strcat(rqh, "User-Agent: Mozilla/5.0\r\n"); strcat(rqh, "Connection: keep-alive\r\n\r\n"); diff --git a/yoRadio/src/audioVS1053/audioVS1053Ex.cpp b/yoRadio/src/audioVS1053/audioVS1053Ex.cpp index 772d39c..8df8819 100644 --- a/yoRadio/src/audioVS1053/audioVS1053Ex.cpp +++ b/yoRadio/src/audioVS1053/audioVS1053Ex.cpp @@ -1787,9 +1787,11 @@ bool Audio::connecttohost(const char* host, const char* user, const char* pwd) { strcat(rqh, hostwoext); strcat(rqh, "\r\n"); strcat(rqh, "Icy-MetaData:1\r\n"); - strcat(rqh, "Authorization: Basic "); - strcat(rqh, authorization); - strcat(rqh, "\r\n"); + if (auth > 0) { + strcat(rqh, "Authorization: Basic "); + strcat(rqh, authorization); + strcat(rqh, "\r\n"); + } strcat(rqh, "Accept-Encoding: identity;q=1,*;q=0\r\n"); strcat(rqh, "User-Agent: Mozilla/5.0\r\n"); strcat(rqh, "Connection: keep-alive\r\n\r\n"); diff --git a/yoRadio/src/core/options.h b/yoRadio/src/core/options.h index c525a62..9b582c8 100644 --- a/yoRadio/src/core/options.h +++ b/yoRadio/src/core/options.h @@ -1,7 +1,7 @@ #ifndef options_h #define options_h -#define YOVERSION "0.9.156" +#define YOVERSION "0.9.161" /******************************************************* DO NOT EDIT THIS FILE. diff --git a/yoRadio/src/displays/widgets/widgets.cpp b/yoRadio/src/displays/widgets/widgets.cpp index 69c9402..4e5fc9e 100644 --- a/yoRadio/src/displays/widgets/widgets.cpp +++ b/yoRadio/src/displays/widgets/widgets.cpp @@ -467,6 +467,7 @@ void BitrateWidget::init(BitrateConfig bconf, uint16_t fgcolor, uint16_t bgcolor void BitrateWidget::setBitrate(uint16_t bitrate){ _bitrate = bitrate; + if(_bitrate>999) _bitrate=999; _draw(); }