I've always missed something that gives my a page of random album covers. So I started to script a small piece of php which does the trick. Selecting a number of random albums and display their covers works fine.
Problem is I have no idea how to pass an album ID to squeezecenter and make it start playing it. I've experimented a bit whith CLI and shell_exec but thats pretty ugly. Easiest way would be to attach an hyperlink to the picture to make it play the album. Some lines of my code (just in case): $query = " SELECT a.titlesort, t.url, a.id FROM albums a, tracks t WHERE t.album = a.id and t.audio = 1 order by rand() LIMIT 21 "; print "<img src=\"getpic.php?file=$source2/cover.jpg\" width=240 heigth=240 alt=\"$row[titlesort]\" title=\"$row[titlesort]\">"; What I'm searching for is something like: print "<a href=squeezecenter/playalbumID="$row[\"ID\"]><img src=\"getpic.php?file=$source2/cover.jpg\" width=240 heigth=240 alt=\"$row[titlesort]\" title=\"$row[titlesort]\">"; -- Blu3IcE System: Ubuntu, SqueezeCenter-Version: 7.3 Player: Squeezebox v3 @ Bose LifeStyle Series III Plugins: TrackStat, SugarCube, Dynamic Playlists, AutoDim ------------------------------------------------------------------------ Blu3IcE's Profile: http://forums.slimdevices.com/member.php?userid=13792 View this thread: http://forums.slimdevices.com/showthread.php?t=68109 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
