How to access Collections

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

Moderator: Gurus

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

How to access Collections

Post by bakker_be » Wed Nov 26, 2014 5:06 pm

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

Re: How to access Collections

Post by mcow » Sat Nov 29, 2014 12:56 am

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: 11449
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia
Contact:

Re: How to access Collections

Post by Peke » Sun Nov 30, 2014 7:17 am

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

Post Reply