View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002686 | ardour | bugs | public | 2009-05-18 21:34 | 2020-04-19 20:14 |
| Reporter | donf | Assigned To | paul | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 2.8 | ||||
| Summary | 0002686: Freesound import does not work | ||||
| Description | The PHP script invoked by the Mootcher API has changed. There are a couple more required parameters now. Without those parameters, nothing gets returned to the caller. | ||||
| Additional Information | A patch is attached. This was posted to ardour-dev on 6 May 2009. I chose the sort order (by number of downloads, descending) and result limit (10) arbitrarily. Perhaps the GUI should be modified to allow the user to control these. | ||||
| Tags | No tags attached. | ||||
|
2009-05-18 21:34
|
freesound-mootcher-patch (1,249 bytes)
Index: gtk2_ardour/sfdb_freesound_mootcher.cc
===================================================================
--- gtk2_ardour/sfdb_freesound_mootcher.cc (revision 5054)
+++ gtk2_ardour/sfdb_freesound_mootcher.cc (working copy)
@@ -221,6 +221,28 @@
postMessage += tempPointer;
sprintf( tempPointer, "&searchtags=1");
postMessage += tempPointer;
+
+ // Ref: http://www.freesound.org/forum/viewtopic.php?p=19081
+ // const ORDER_DEFAULT = 0;
+ // const ORDER_DOWNLOADS_DESC = 1;
+ // const ORDER_DOWNLOADS_ASC = 2;
+ // const ORDER_USERNAME_DESC = 3;
+ // const ORDER_USERNAME_ASC = 4;
+ // const ORDER_DATE_DESC = 5;
+ // const ORDER_DATE_ASC = 6;
+ // const ORDER_DURATION_DESC = 7;
+ // const ORDER_DURATION_ASC = 8;
+ // const ORDER_FILEFORMAT_DESC = 9;
+ // const ORDER_FILEFORMAT_ASC = 10;
+ sprintf( tempPointer, "&order=1");
+ postMessage += tempPointer;
+ sprintf( tempPointer, "&start=0");
+ postMessage += tempPointer;
+ sprintf( tempPointer, "&limit=10");
+ postMessage += tempPointer;
+ // The limit of 10 samples is arbitrary, but seems
+ // reasonable in light of the fact that all of the returned
+ // samples get downloaded, and downloads are s-l-o-w.
if(curl)
{
|
|
|
committed for 2.0-ongoing |
|
|
Issue has been closed automatically, by Trigger Close Plugin. Feel free to re-open with additional information if you think the issue is not resolved. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2009-05-18 21:34 | donf | New Issue | |
| 2009-05-18 21:34 | donf | File Added: freesound-mootcher-patch | |
| 2009-09-10 02:18 | paul | Status | new => assigned |
| 2009-09-10 02:18 | paul | Assigned To | => paul |
| 2009-10-01 16:19 | paul | cost | => 0.00 |
| 2009-10-01 16:19 | paul | Note Added: 0006666 | |
| 2009-10-01 16:19 | paul | Status | assigned => resolved |
| 2009-10-01 16:19 | paul | Resolution | open => fixed |
| 2010-04-24 10:28 | cth103 | Category | bugs => bugs2 |
| 2010-04-24 10:31 | cth103 | Category | bugs2 => bugs |
| 2020-04-19 20:14 | system | Note Added: 0021918 | |
| 2020-04-19 20:14 | system | Status | resolved => closed |