9fe0a4f4dd55c0d7aca0f9203eca003b8071767d
Add a new client id & token for Ardour 7, and update to Freesound's API v2. Implement OAuth authentication for Freesound downloads, as described at: https://freesound.org/docs/api/authentication.html#oauth-authentication Open the Freesound login page in the default browser, so that the user can log in and get an authorization code, to copy-&-paste from the browser. Exchange this authorization code for an access token, and use it in a custom 'Authorization: Bearer $TOKEN' http header. If logging in to Freesound to download a file fails or is cancelled, clear the 'downloading' flag for that file in the list so that a subsequent click on it will try to log in again. Show login progress in download progress bar, and disable preview if file hasn't yet been downloaded. If a download fails for any reason (except the user cancelling it), report an error in the Log window. Use curl_free() for pointers returned by curl_easy_escape(), as per the curl documentation, rather than plain free(). Also, don't use the www. sub-domain of freesound.org: although it appears to work for most things, it returns an empty document from https://freesound.org/apiv2/oauth2/access_token/ Remove default empty token value from Mootcher constructor, to make it explicit when we construct a Mootcher that doesn't require authorisation, by requiring an empty token parameter in that case.
Please see the Ardour web site at https://ardour.org/ for all documentation..
For information on building ardour:
https://ardour.org/development.html
Description
Languages
C++
56.5%
C
39.6%
JavaScript
1.3%
Lua
0.9%
Python
0.6%
Other
0.9%