in reply to Lyrics for what's playing on radio KOIT (FM 96.5 in San Francisco)

Johnny, I got it to work by just erasing the + as suggested by warnings. This is a neat piece of code. Questions: A.) I have not seen 'while(1)' used in any book. What does the 1 refer to? B.) I can't get KOIT to stream on my Real or my Windows Media player. Is it possible to get such data from other radio stations, or is the data KOIT-specific? Regards, fdillon
  • Comment on Re: Lyrics for what's playing on radio KOIT (FM 96.5 in San Francisco)

Replies are listed 'Best First'.
Re^2: Lyrics for what's playing on radio KOIT (FM 96.5 in San Francisco)
by eric256 (Parson) on Mar 31, 2005 at 17:54 UTC

    while (1) { will loop as long as 1 is true, which should be a very very long time since 1 is always true. It is a way to create an infinite loop.


    ___________
    Eric Hodges
Re^2: Lyrics for what's playing on radio KOIT (FM 96.5 in San Francisco)
by Popcorn Dave (Abbot) on Mar 31, 2005 at 20:33 UTC
    I've seen a few radio stations that post their playlists. Some are realtime, some are not. KFOG is another San Francisco station that does post their playlist and I think it's fairly realtime or it was. However BBC6, which I listen to at work, does post their playlists, but some presenters do it about 5-10 minutes after the song plays, while others wait a day to post. I've even seen some Real Audio feeds that actually give you the title and artist.

    Useless trivia: In the 2004 Las Vegas phone book there are approximately 28 pages of ads for massage, but almost 200 for lawyers.
Re^2: Lyrics for what's playing on radio KOIT (FM 96.5 in San Francisco)
by johnnywang (Priest) on Mar 31, 2005 at 21:19 UTC
    BTW, the "+" you see is added by perlmonks for formatting, you can turn the text wrapping on/off from your user settings page.
Re^2: Lyrics for what's playing on radio KOIT (FM 96.5 in San Francisco)
by johnnywang (Priest) on Mar 31, 2005 at 21:18 UTC
    Not sure why you're having problem streaming, I listen to KOIT via the net (Windows Media), all seems to be fine. Yes, the "waht's playing now" is for KOIT only, it's a couple of seconds late, but usually ok.