Page 1 of 1

How to access Collections

Posted: Wed Nov 26, 2014 5:06 pm
by bakker_be
Hi there,
how can I access what's the content of a collection? I'm trying to make a MS Access front-end allowing me to more easily create and manage collections for the summer festivals I attend. I've found that the collections themselves are in the "Filters" table, but I can't seem to find how I can influence or even determine their content ...
Thanks for any pointers

Re: How to access Collections

Posted: Sat Nov 29, 2014 12:56 am
by mcow
I haven't done this, but looking at the documentation for SDB.DataBase (SDBDataBase), you can do two things with the Filter ID value:

Code: Select all

SDB.Database.ActiveFilterID = collectionID      # sets an "active filter," which I think means all subsequent
                                                # queries are applied only to the tracks in the collection

SDB.QuerySongs( GetFilterQuery(collectionID) )  # returns a list of all the tracks in the collection

Re: How to access Collections

Posted: Sun Nov 30, 2014 7:17 am
by Peke
Check Submit options from Last.fm Plugin options and you can see example on how to read and handle filters/collections.