mfoland Posted October 19, 2015 Share Posted October 19, 2015 (edited) 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 October 19, 2015 by mfoland Quote Link to comment https://forums.phpfreaks.com/topic/298697-image-artwork-with-with-shoutcast-using-php/ Share on other sites More sharing options...
mfoland Posted October 19, 2015 Author Share Posted October 19, 2015 I know apple also has a way to retrieve album artwork. Any help would be appreciated. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/298697-image-artwork-with-with-shoutcast-using-php/#findComment-1523720 Share on other sites More sharing options...
SuperGizmo Posted October 21, 2015 Share Posted October 21, 2015 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 Quote Link to comment https://forums.phpfreaks.com/topic/298697-image-artwork-with-with-shoutcast-using-php/#findComment-1523881 Share on other sites More sharing options...
mfoland Posted October 21, 2015 Author Share Posted October 21, 2015 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 Quote Link to comment https://forums.phpfreaks.com/topic/298697-image-artwork-with-with-shoutcast-using-php/#findComment-1523925 Share on other sites More sharing options...
mfoland Posted October 26, 2015 Author Share Posted October 26, 2015 How can I go about this? Quote Link to comment https://forums.phpfreaks.com/topic/298697-image-artwork-with-with-shoutcast-using-php/#findComment-1524406 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.