This commit is contained in:
e2002
2023-04-24 10:50:21 +03:00
parent c3c18b0865
commit 629cdef31d
6 changed files with 17 additions and 7 deletions

View File

@@ -226,6 +226,11 @@ Work is in progress...
--- ---
## Version history ## 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 #### v0.9.156
- fixed bug of random change of playback location when playing files from SD card - fixed bug of random change of playback location when playing files from SD card

Binary file not shown.

View File

@@ -461,9 +461,11 @@ bool Audio::connecttohost(const char* host, const char* user, const char* pwd) {
strcat(rqh, hostwoext); strcat(rqh, hostwoext);
strcat(rqh, "\r\n"); strcat(rqh, "\r\n");
strcat(rqh, "Icy-MetaData:1\r\n"); strcat(rqh, "Icy-MetaData:1\r\n");
strcat(rqh, "Authorization: Basic "); if (auth > 0) {
strcat(rqh, authorization); strcat(rqh, "Authorization: Basic ");
strcat(rqh, "\r\n"); strcat(rqh, authorization);
strcat(rqh, "\r\n");
}
strcat(rqh, "Accept-Encoding: identity;q=1,*;q=0\r\n"); strcat(rqh, "Accept-Encoding: identity;q=1,*;q=0\r\n");
strcat(rqh, "User-Agent: Mozilla/5.0\r\n"); strcat(rqh, "User-Agent: Mozilla/5.0\r\n");
strcat(rqh, "Connection: keep-alive\r\n\r\n"); strcat(rqh, "Connection: keep-alive\r\n\r\n");

View File

@@ -1787,9 +1787,11 @@ bool Audio::connecttohost(const char* host, const char* user, const char* pwd) {
strcat(rqh, hostwoext); strcat(rqh, hostwoext);
strcat(rqh, "\r\n"); strcat(rqh, "\r\n");
strcat(rqh, "Icy-MetaData:1\r\n"); strcat(rqh, "Icy-MetaData:1\r\n");
strcat(rqh, "Authorization: Basic "); if (auth > 0) {
strcat(rqh, authorization); strcat(rqh, "Authorization: Basic ");
strcat(rqh, "\r\n"); strcat(rqh, authorization);
strcat(rqh, "\r\n");
}
strcat(rqh, "Accept-Encoding: identity;q=1,*;q=0\r\n"); strcat(rqh, "Accept-Encoding: identity;q=1,*;q=0\r\n");
strcat(rqh, "User-Agent: Mozilla/5.0\r\n"); strcat(rqh, "User-Agent: Mozilla/5.0\r\n");
strcat(rqh, "Connection: keep-alive\r\n\r\n"); strcat(rqh, "Connection: keep-alive\r\n\r\n");

View File

@@ -1,7 +1,7 @@
#ifndef options_h #ifndef options_h
#define options_h #define options_h
#define YOVERSION "0.9.156" #define YOVERSION "0.9.161"
/******************************************************* /*******************************************************
DO NOT EDIT THIS FILE. DO NOT EDIT THIS FILE.

View File

@@ -467,6 +467,7 @@ void BitrateWidget::init(BitrateConfig bconf, uint16_t fgcolor, uint16_t bgcolor
void BitrateWidget::setBitrate(uint16_t bitrate){ void BitrateWidget::setBitrate(uint16_t bitrate){
_bitrate = bitrate; _bitrate = bitrate;
if(_bitrate>999) _bitrate=999;
_draw(); _draw();
} }