How to access Collections

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey.

Moderators: Gurus, Addon Administrators

Posts: 25
Joined: Fri Apr 16, 2010 8:06 am

How to access Collections

Post 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
Posts: 827
Joined: Sun Sep 21, 2008 9:35 pm
Location: Cupertino, California

Re: How to access Collections

Post 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
Posts: 13794
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia

Re: How to access Collections

Post by Peke »

Check Submit options from Plugin options and you can see example on how to read and handle filters/collections.
Best regards,
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
How to add SCREENSHOTS to forum
Post Reply