params += "&s=" + sortMethodString(sort);\r
\r
params += "&fields=id,original_filename,duration,filesize,samplerate,license,serve";\r
+ params += "&sounds_per_page=100";\r
\r
return doRequest("/sounds/search", params);\r
}\r
return "";\r
}\r
\r
- //if already canceling a previous download, bail out here ( this can happen b/c getAudioFile gets called by various UI update funcs )\r
+ // if already cancelling a previous download, bail out here ( this can happen b/c getAudioFile gets called by various UI update funcs )\r
if ( caller->freesound_download_cancel ) {\r
return "";\r
}\r
\r
- //now download the actual file\r
+ // now download the actual file\r
FILE* theFile;\r
theFile = g_fopen( audioFileName.c_str(), "wb" );\r
\r
caller->freesound_progress_bar.set_text("");\r
\r
if( res != 0 ) {\r
- error << string_compose (_("curl error %1 (%2)"), res, curl_easy_strerror(res)) << endmsg;\r
+ /* it's not an error if the user pressed the stop button */\r
+ if (res != CURLE_ABORTED_BY_CALLBACK) {\r
+ error << string_compose (_("curl error %1 (%2)"), res, curl_easy_strerror(res)) << endmsg;\r
+ }\r
remove( audioFileName.c_str() ); \r
return "";\r
} else {\r