« The Votemaster Revealed | Main | Election Day 2004 »

November 1, 2004

ICYG "Now Playing" Info

Since I launched ICYG, I've incorporated "now playing" info on this site by having ICYG's source player's HTTP writer return a small HTML file about the currently playing song when requested on a certain port. Then, I created a cron job on Cygweb's host that made that request with Lynx, saved the result locally, and rebuilt the frontpage every 5 minutes. This was OK, but obviously not dynamic or highly accurate. I'm now working on a Zope-served now playing page and am playing with an iframe in the ICYG Radio portion of the rightbar as a replacement. I need to see if MT has a cleaner way of including foreign HTML content than iframes.

Comments

Possibly some type of include. MT is backend PERL right? Does your host and or machine have PHP installed. Because you could specify the iframed file as a .php file and do a PHP include.

or if at a different URL


Not sure if this is what you were looking for or not.

The code showed up when I went to edit it, so I can see it.

This host has PHP, but the ICYG site is running Zope. I'm trying to include straight HTML. I'll have to see if I can somehow shoehorn this into using PHP.

Thanks...

Ehh... I'm giving up on this in this form for now. I tweaked the existing query process to include an album cover and purchase link if the ASIN tag is present. The CLUBMEMBERAZID tag is assumed to be there if the ASIN is. Continuing to poll for this data every five minutes isn't inaccurate enough for me to really worry about that aspect of it.

Ain't it still cool?

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)