FireFly Media Server › Firefly Media Server Forums › Firefly Media Server › General Discussion › Song rating for Firefly via Roku Soundbridge › Reply To: Song rating for Firefly via Roku Soundbridge
14/08/2008 at 8:26 PM
#17278
Anonymous
Inactive
Oooh, I’ve now recreated a feature that should really be there anyway – takes the current playlist and injects it into Firefly so you can recall it.
<?php
/**
* Save the playlist currently on the Roku Client to the Firefly media server
*/
require_once( "roku_client.php" );
require_once( "firefly_db.php" );
$sb = new RokuClient();
$ff = new FireflyDb();
$aIds = $sb->GetNowPlayingSongIds();
$ff->savePlaylist( "Custom", $aIds );
?>
😛