haecker-felix / Gradio

GNU General Public License v3.0
326 stars 51 forks source link

[rust_port] Gtk-warning markup error #336

Open sigmaSd opened 6 years ago

sigmaSd commented 6 years ago

(Radio:30431): Gtk-WARNING **: 16:08:48.933: Failed to set text '<a href="https://www.internet-radio.com/servers/tools/playlistgenerator/?u=http://184.173.185.71:9804/listen.pls&t=.m3u">https://www.internet-radio.com/servers/tools/playlistgenerator/?u=http://184.173.185.71:9804/listen.pls&t=.m3u</a>' from markup due to error parsing markup: Error on line1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &amp;

Wasn't sure what to about it,cause I get this error with the same station so you could just set the homepage of stations that include & to "" or handle it and add amp; to escape this character.

sigmaSd commented 6 years ago

Hmm now I understand , basically I get this error when a station have the wrong homepage (live stream url instead of the actual homepage), not sure how do you want to handle it.

haecker-felix commented 6 years ago

No. The message appears, if the url contains a special character.

For example the German 'Ä' letter needs to be translated into "&auml". The error message itself says it:

"most likely you used an ampersand character without intending to start an entity - escape ampersand as &"

sigmaSd commented 6 years ago

that's pretty cool , didn't know that , I added a PR to fix it , I hope it's not too hacky .