mherger wrote: 
> 
> 
> > My plugins does some filtering on tracks.audio=1 so if this isn’t the
> > case for online tracks that would explain it. There need to be a
> filter
> 
> That's the same.
> 
> > because playlists are also stored in tracks table but it might have
> to
> > be adopted to work with integrated online music. Could be that there
> is
> > also some filtering in the Perl code in my plugins that removes
> > everything that isn’t a file:// url or have tracks.remote=1 but in
> that
> > case it’s probably unintentionally.
> 
> Yep, as I mentioned online tracks start with eg. wimp://... or
> spotify:...
> 
> > It might also be that they aren’t in the database at all and that
> only
> > the album is represented in the database while the tracks are
> retrieved
> > from the streaming service when the user selects to play the album.
> If
> 
> They're in there.
> 
Unless I’ve forgotten something I don’t think they are removed in the
SQL, as long as they are in tracks table and tracks.audio=1 they should
be returned from the SQL. I definitely don’t do and filtering on file://
in the SQL.

I’m guessing Slim::Schema->objectForUrl should return them ? 
If it doesn’t that’s probably the cause since I execute the raw SQL and
call objectForUrl with the url as parameter to get the Slim::Schema
object for each track url.

To anyone looking into this, getTracksForPlaylist method in SQLPlayList
plugin returns the Slim::Schema track objects when more tracks should be
added to the dynamic playlist.
https://github.com/erland/lms-sqlplaylist/blob/5955592540b5c157518edf61a731b5ca484c8813/src/Plugin.pm#L962

If debug logging is enabled on plugin.sqlplaylist you should see entries
like this in the server.log:
Adding: <url>
If you see this kind of entries for streaming service tracks but they
aren’t added to the playlist it means that the problem likely is in
DynamicPlaylist plugin and not in SQLPlayList plugin.

The tracks produced by SQLPlayList will be processed in DynamicPlaylist
and:
- Processed through skipping filters in filterTracks function:
https://github.com/erland/lms-dynamicplaylist/blob/6a0c37c4d80e2ebeed307fc3620b757490186b76/src/Plugin.pm#L282
- Added to current playlist with “playlist addtracks” or “playlist
loadtracks” command at row 372 and 382 in Plugin.pm:
https://github.com/erland/lms-dynamicplaylist/blob/6a0c37c4d80e2ebeed307fc3620b757490186b76/src/Plugin.pm#L372

Enabling debug logging on plugin.dynamicplaylist should give you more
indications regarding what’s going on.



Erland Isaksson ('My homepage' (http://erland.isaksson.info))
Developer of 'many plugins/applets'
(https://wiki.slimdevices.com/index.php/User_Erland.html)
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=49483

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to