Jump to content

Image artwork with with Shoutcast using php


mfoland

Recommended Posts

Hello,

I have an Internet Radio station and I use Shoutcast. I have a function that allows me to grab the song and artist information such as Del Amitri - Roll To Me and show it on my website, and automatically changing when the songs change. I show the now playing, and last three songs. I'm wondering How I can get it to also pull in album artwork from Last.FM or Amazon such as this website: BIG 106.5 - Dayton's 70s & 80s Hits (move over the black bar and drop down). You will be able to see something such that I would want to accomplish. Not sure if this merely Javascript, or if there's also PHP.. but then again, I'd think Javascript for it to automatically change when a new song plays.

 

Here is the file I currently have setup...which pulls the information from my shoutcast stream. I would love to incorporate album art from Amazon and/or an internal database that I have setup.. Here is what the file currently looks like. I also have stuff commented out for which I am not using ATTM. It pulls the song like artist - title

<!--<html>
<head>-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js" type="text/javascript"></script>
<script src="http://wlqtdb.com/wayne/pollstation.js" type="text/javascript"></script>
<!--</head>
<body>-->
Now Playing on WLQT-DB:
<!--<div id="currentsong">
</div>-->
<span id="currentsong"></span>
Recently Played:
    <!--<table>
    <tr><th>Recently Played Songs</th></tr>
    <tr><td><img id='prevsong1' alt=""><span id="prevsong1"></span></td></tr>
    <tr><td><span id="prevsong2"></span></td></tr>
    <tr><td><span id="prevsong3"></span></td></tr>-->
		<span id="prevsong1"></span>
		<span id="prevsong2"></span>
		<span id="prevsong3"></span>
    <!--<tr><td><span id="prevsong4"></span></td></tr>
    <tr><td><span id="prevsong5"></span></td></tr>
    <tr><td><span id="prevsong6"></span></td></tr>
    <tr><td><span id="prevsong7"></span></td></tr>
    <tr><td><span id="prevsong8"></span></td></tr>
    <tr><td><span id="prevsong9"></span></td></tr>
    <tr><td><span id="prevsong10"></span></td></tr>-->
   <!-- </table>
		Testing: <? echo "$currentsong"; ?>
</body>
</html>-->

Any help would be greatly appreciated. As you can see with this result, I do the Current playing song, then it does the last 3 songs.

Thanks

Edited by mfoland
Link to comment
Share on other sites

Hey,

I don't know how to do it, however if you log onto this website: oldiesplus.com - they're doing the same sorta thing.

There is an IRC chat attached to the site. If you log onto the chat and speak to "Delirious" or "BusyElf" they set the website/servers up so I'm sure they'll have no problem in assisting you. However they're from the UK so might be early for you when they're on-line.

Thanks,

Dan

Link to comment
Share on other sites

I looked at that site, but didn't have the albumart. Would be nice to know how to code it in with titles fetched from the shoutcast server. I have a script that fetches them no sweat.. but it's integrating the artwork haha

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.