How to access Collections

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

Moderators: Gurus, Addon Administrators

bakker_be
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
mcow
Posts: 834
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
Peke
Posts: 17484
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: How to access Collections

Post by Peke »

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