Re: [PATCH] Add a source for beets library databases

Yoni Rabkin <[email protected]>
Newsgroups gmane.emacs.emms.user
Message-ID <[email protected]>
Daniel Semyonov <[email protected]> writes:

> I've pushed an updated version of the patch to a new "beets" branch of
> the EMMS repo.
>
> This version:
> - ensures at least a name and a type is available for each added track,
> - inhibits info functions when adding from the beets database,
> - allows interactive filtering by distinct value(s) of column(s) when adding,
> - sorts tracks to be added before inserting them into the playlist,
> - allow customizing the columns to sort by, their order and the sort type,
> - only gets data from a predefined set of columns,
> - attempts to fix the data format of some columns and their names,
> - adds various small improvements and optimizations to the code.
>
> This is basically feature complete IMO.
> I could add an info function which gets metadata from the beets DB if a
> file has been added without using the beets source commands but is
> actually registered in the DB, however I'm not sure how useful this
> really is.

It will take me a while to get a beets instance running to test it
myself. But I encourage people to try this out.

But without trying it, I think that an Emacs compiled without sqlite may
end up compiling that code with warnings about non-existent functions.

We could get around that with a bunch of declarations such as:

    (declare-function sqlite-execute "sqlite.c")

Kludgy, but it works.

-- 
   "Cut your own wood and it will warm you twice"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.