pschatzmann / arduino-audio-tools

Arduino Audio Tools (a powerful Audio library not only for Arduino)
GNU General Public License v3.0
1.55k stars 237 forks source link

Fixed wrong parsed host/port if url contains a colon #1145

Closed fehlfarbe closed 11 months ago

fehlfarbe commented 11 months ago

The URL parser couldn't open http://streams.radiobob.de/bob-90srock/mp3-192/streams.radiobob.de/ because it redirects to an URL that contains a colon in the path -> http://regiocast.streamabc.net/regc-radiobob90srock8400272-mp3-192-6033382?sABC=6594n752%230%23646nospp171428794pq27671101q00p3%23fgernzf.enqvbobo.qr&aw_0_1st.playerid=streams.radiobob.de&amsparams=playerid:streams.radiobob.de;skey:1704240978 (playerid : streams...)

I'm checking if the position of the port is in front of the path so it doesn't extract the whole part before the colon for the hostname which results in a hostByName(): DNS Failed error on ESP32-S3.

pschatzmann commented 11 months ago

Thanks a lot

pschatzmann commented 11 months ago

Can you double check: it seems that this is giving compile errors https://github.com/pschatzmann/arduino-audio-tools/issues/1150