I looked at the radio plugins, but didn't got stuck trying to understand
what $client->execute(['playlist','add',$playURL]); really means.  Is
there an API doc for the Slim::* classes compiled from the comments in
the code somewhere?

Anyways, after perusing the Slim::Schema source for a while, I was
stifled by the fact that the functions provided for constructing a
track object will always run the _postCheckAttributes method which
seems to be responsible for updating the datastore with the attributes
of the track (as far as I can tell).  However, the _postCheckAttributes
function is NOT called if we use those functions to create a playlist. 
Specifically, the code looks like this:


Code:
--------------------
    
        # Now that we've created the track, and possibly an album object -
        # update genres, etc - that we need the track ID for.
        if (!$playlist) {
  
                $self->_postCheckAttributes({
                        'track'      => $track,
                        'attributes' => $deferredAttributes,
                        'create'     => 1,
                });
  
--------------------


Is there any way to take advantage of this to accomplish what I want? 
Do I have to return an array of tracks from the
getNextDynamicPlayListTracks function?  Or would it be possible to
return a complete playlist somehow?


-- 
anonymous247
------------------------------------------------------------------------
anonymous247's Profile: http://forums.slimdevices.com/member.php?userid=8143
View this thread: http://forums.slimdevices.com/showthread.php?t=28999

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to