Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

[rust_port] Gtk-warning markup error #336

Open
sigmaSd opened this issue Jul 11, 2018 · 3 comments
Open

[rust_port] Gtk-warning markup error #336

sigmaSd opened this issue Jul 11, 2018 · 3 comments

Comments

@sigmaSd
Copy link

sigmaSd commented Jul 11, 2018

(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
Copy link
Author

sigmaSd commented Jul 11, 2018

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
Copy link
Owner

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 added a commit to sigmaSd/Gradio that referenced this issue Jul 11, 2018
escape & character.
@sigmaSd
Copy link
Author

sigmaSd commented Jul 11, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants