alex
2464 Beiträge
schrieb am 10.11.10 um 18:11 Uhr
Link zu diesem Post
No problem:-)
LG/Best regards, Alex

"Journalism is printing what someone else does not want printed. Everything else is public relations."
- George Orwell

D1734FA178BF7D5AE50CB1AD54442494
 
Abe Sahrani
schrieb am 12.11.10 um 14:58 Uhr
Link zu diesem Post
hallo again …


if you don't mind…could you explain if i wanna parsing channel stream from shoutcast..???

i just got url xml genre group from shoutcast

http://yp.shoutcast.com/sbin/newxml.phtml

and for the details

http://yp.shoutcast.com/sbin/newxml.phtml?genre="genre name" without quotes

tq
 
alex
2464 Beiträge
schrieb am 12.11.10 um 18:32 Uhr
Link zu diesem Post
I thought about your question but I don't know exactly what you want..:-P
You can retrieve the stations as you explained and get the corresponding playlist (the thing you can feed streamWriter with) by using http://yp.shoutcast.com/sbin/tunein-station.pls?id=1207848 for example, where id is the id field you get using the second link you posted.
I have set up "my own shoutcast" because I don't think those people like it if streamWriter hammers their servers..
LG/Best regards, Alex

"Journalism is printing what someone else does not want printed. Everything else is public relations."
- George Orwell

D1734FA178BF7D5AE50CB1AD54442494
 
Abe Sahrani
schrieb am 13.11.10 um 01:39 Uhr
Link zu diesem Post
sorry for my incomplete explanation…

i just want to try get list of channel from the shoutcast..not hammer their server,
but i already did it with another xml component..


thanks again….
 
alex
2464 Beiträge
schrieb am 13.11.10 um 21:54 Uhr
Link zu diesem Post
If you downloaded the XML (I download it using my THTTPThread) and want to parse it, it's easy. Take a look at HomeCommunication.pas, for example procedure TGetStreamsThread.DoDisconnected - it parses XML from the streamwriter.org server and displays it in the streambrowser. It's the same thing in procedure TGetGenresThread.DoDisconnected where all received genres are parsed.
Does this help you? I'm wondering what you are trying to achieve, so I might provide better help.
LG/Best regards, Alex

"Journalism is printing what someone else does not want printed. Everything else is public relations."
- George Orwell

D1734FA178BF7D5AE50CB1AD54442494
 
Abe Sahrani
schrieb am 14.11.10 um 03:56 Uhr
Link zu diesem Post
tq again…u're really kind to me…:D

i just want to change the radio genre which load from http://streamwriter.org/en/streamdb/ with this http://yp.shoutcast.com/sbin/newxml.phtml

and if that success..i'll continue try to parse the radio stations …

but you know … i'm not good enought to do it..especially working with xml …

hehe

 
alex
2464 Beiträge
schrieb am 15.11.10 um 18:28 Uhr
Link zu diesem Post
Hi,

HomeCommunication.pas does all the stuff you want. You will have to modify THomeCommunication.GetGenres and TGetGenresThread.DoDisconnected. Modify the URL in GetGenres and change XML parsing in DoDisconnected so that the genres from shoutcast are read. There's already code that shows how to parse XML that should be adaptable to your needs.
It's (nearly) the same for getting the streams I think, but there might be a difference. streamWriter loads only as many streams it can display in the list, I don't know if you can tell the shoutcast server something like "I want to get streams 100 to 120 of genre xyz", not "I want to get all streams of genre xyz".

HTH and have a nice day:-)
LG/Best regards, Alex

"Journalism is printing what someone else does not want printed. Everything else is public relations."
- George Orwell

D1734FA178BF7D5AE50CB1AD54442494
 
Abe Sahrani
schrieb am 16.11.10 um 01:13 Uhr
Link zu diesem Post
thx man….it means lot…

shoutcast handles for requesting channel with limit example if i just wanna show only 500 channel

it can be done with

add &limit=%d to limit xml entry results where %d is the number of items to return
 
alex
2464 Beiträge
schrieb am 16.11.10 um 20:18 Uhr
Link zu diesem Post
If it is possible to supply not just the count to retrieve but also the offset from where to retrieve, it should be very easy to integrate the shoutcast database into streamWriter. Otherwise, the control that shows the channels would need to be changed.
LG/Best regards, Alex

"Journalism is printing what someone else does not want printed. Everything else is public relations."
- George Orwell

D1734FA178BF7D5AE50CB1AD54442494