[Icecast] icecast2yp server problem...
Joern Nettingsmeier
nettings at folkwang-hochschule.de
Wed Mar 2 22:32:47 UTC 2005
hi oddsock, hi everyone!
i have set up an icecast2yp, took a while to get it to compile, but now
it works. the only problem is that the hostnames have all dots replaced
with dashes in the generated playlists
james sheldon has reported this problem here a year ago
(http://lists.xiph.org/pipermail/icecast/2004-March/006729.html), but
nobody responded, so i bring it up again.
i dumped the data my server is sending:
action=add&sn=Ogg%20Vorbis%20test%20stream&genre=Klezmer&cpswd=&desc=\
Some%20classic%20Klezmer%20recordings&url=&listenurl=\
http%3a%2f%2fspunk%2ednsalias%2eorg%3a8000%2ftest%2dvorbis%2eogg&type=\
application%2fogg&stype=Vorbis&b=128&bitrate=128&samplerate=44100&channels=2
as you can see, the url has 0x2e chars, which is '.'
in my database however i find
| 2 | 2 | Ogg Vorbis test stream | 127.0.0.1 | Some classic
Klezmer recordings | Klezmer | | 1109789709.513893 | |
| http://spunk-dnsalias-org:8000/test-vorbis-ogg | 2 |
application/ogg | Vorbis
| 128 | 0 | 2
| 44100 |
dashes.
it seems that cgi_unescape_special_chars from libcgi is b0rken:
char input[] =
"http%3a%2f%2fspunk%2ednsalias%2eorg%3a8000%2ftest%2dvorbis%2eogg";
char *output = cgi_unescape_special_chars(input2);
printf("%s is %s\n", input, output);
gives
http%3a%2f%2fspunk%2ednsalias%2eorg%3a8000%2ftest%2dvorbis%2eogg is
http://spunk-dnsalias-org:8000/test-vorbis-ogg
it seems there is a url_decode function in icecast2yp, but it seems to
be unused....
best,
jörn
More information about the Icecast
mailing list