From d20e83b300b4fa09baad7e328d963a32c2b9b493 Mon Sep 17 00:00:00 2001 From: "David V. Lu" Date: Mon, 12 Aug 2024 11:38:56 -0400 Subject: [PATCH] How to submit --- README.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.rst b/README.rst index 9cdde89..6be42ae 100644 --- a/README.rst +++ b/README.rst @@ -103,7 +103,20 @@ if you want to proceed when audio can't be decoded or no match is found on the server. ``NoBackendError``, a subclass of ``FingerprintGenerationError``, is used when the Chromaprint library or fpcalc command-line tool cannot be found. +You can also use the library to submit your own fingerprints, which also requires a `user api key`_. + +.. code-block:: python + + >> acoustid.submit(apikey, userkey, { + 'fingerprint': 'xxx', + 'duration': 111, + 'mbid': 'xxx-xxx', + 'track': 'Track name', + }) + + .. _Web service documentation: http://acoustid.org/webservice +.. _user api key: https://acoustid.org/api-key Version History