schreibfaul1 / ESP32-audioI2S

Play mp3 files from SD via I2S
GNU General Public License v3.0
1.14k stars 291 forks source link

Problem ! User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36\r\n"); #895

Open bhpjean opened 1 week ago

bhpjean commented 1 week ago

This entry:

strcat(rqh, "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36\r\n");

This causes servers based on SHOUTcast server software to reject connections from radios based on the new library. I think the name is probably too long. I don't know.

I changed this entry in Audio.cpp to the old one:

strcat(rqh, "User-Agent: ESP32 audioI2S\r\n");

and the radio tuner connects normally to the server based on SHOUTcast server software

check these streams and you will see:

http://relay1.slayradio.org:8300/ http://stream3.polskieradio.pl:8950

Also, great respect for the work in writing the esp32 i2s audio library

Best regards

Piotr D

Marcin-Fenger commented 1 week ago

User-Agent: iTunes/12.6.5 (Macintosh; OS X 11.0) AppleWebKit/611.2.7.1.4 - works User-Agent: VLC/3.0.21 LibVLC/3.0.21 - works

I think it should be changed.

schreibfaul1 commented 1 week ago

Thanks for the good work. I have changed the user agent.