I run a radio station using SAM technology. On my website I have a page that shows the currently playing song in real time. Once the song changes, it is also reflected on the website with the new song information.

The code refreshes every random interval between 2-3 minutes. An example of this is on http://projectvibe.net

What I would like to know is how to integrate the fivestar module for each song while its being played.

In a nutshell, I would like to be able to rate each song (dynamic content outside of drupal) and store these ratings in a separate db table containing the following fields:

song_rating table
---------------------------------
+ songID (I get this value from separate table containing all the songs in the music library)
+ userID (drupal userID)
+ rating (value from fivestar module/votingAPI)

The end result is me being able to sort songs based on rating and also display average rating in sorted lists AND on the currentsong php file.

Is this possible? And if so, can you please point me in the right direction to accomplish this?

Comments

erdubya’s picture

Or would it be easier to import the data as nodes/content, then use the fivestar module on it, rather than using fivestar on external data?