[IFCOMP]Various[][IF!COMP][artist][] - [album]\[track] [artist] -
[title]

Really you would want album artist used if present, not artist all the
time:

[IFCOMP]Various[][IF!COMP][IFVALUE]album artist,[album
artist],[artist][][] - [album]\[track] [artist] - [title]


-- 
spoon

Spoon-    www.dbpoweramp.com
------------------------------------------------------------------------
spoon's Profile: http://forums.slimdevices.com/member.php?userid=18156
View this thread: 
I will do it anyway for my own use.

What I am asking, such a module could be interesting/useful enough to be contribuited?

If so, I will put much more effort in documenting, writing clean code and so on.

----
This is the API I defined:

As a general rule, to get the api I used the HTTP verb (get, post, put ) , added a suffix that is the "_xxx" meta operation when available, otherwise I added an arbitrary but descriptive suffix.
This is the result of my efforts:

-module(couch_api)

% List all databases
get_all_dbs()

% Generate a new unique id
post_uuid()

% Generate Count new unique ids
post_uuid(Count)

% Create a database
put_db(DbName) when is_binary(DbName)

% Delete a database.
delete_db(DbName)

% Informations on a database
get_status(Db)
% or get_db_status?

% Compact the database
compact_db(Db)
%or get_compat_db?

% All documents
get_all_docs()
get_all_docs(Start, Count)
get_all_docs(Start, Count, Desc)

% Get a document
get_doc(Db, Doc)
get_doc(Db,Doc,revs)   % with revisions
get_doc(Db,Doc,Rev)   % of the specified revision

% Get an attachment
get_attachment(Db, Doc, AttachmentId)

% Create a new named document
put_doc_named(Db, Doc, Term)

% Insert or Replace and attachment
put_attachment(Db, Doc, Attachment) % insert
put_attachment(Db, Doc, Attachment, Rev)  % replace the given revision

% Create an unnamed document
post_doc(Db)
% Bulk insert/update
post_bulk_docs(DbName, Docs)



Reply via email to