Compare commits
2 Commits
14cf7e4c23
...
1e0d14f429
Author | SHA1 | Date | |
---|---|---|---|
1e0d14f429 | |||
1516dcc529 |
@ -1215,11 +1215,7 @@ SoundFileBrowser::freesound_search()
|
||||
std::string theString = mootcher.searchText(
|
||||
search_string,
|
||||
freesound_page,
|
||||
#ifdef __APPLE__
|
||||
"", // OSX eats anything incl mp3
|
||||
#else
|
||||
"type:(wav OR aiff OR flac OR aif OR ogg OR oga)",
|
||||
#endif
|
||||
"",
|
||||
sort_method
|
||||
);
|
||||
|
||||
@ -1345,13 +1341,13 @@ SoundFileBrowser::handle_freesound_results(std::string theString) {
|
||||
|
||||
/* see http://www.freesound.org/help/faq/#licenses */
|
||||
char shortlicense[64];
|
||||
if(!licence.compare(0, 42, "http://creativecommons.org/licenses/by-nc/")){
|
||||
if (licence.find("://creativecommons.org/licenses/by-nc/") != std::string::npos){
|
||||
sprintf(shortlicense, "CC-BY-NC");
|
||||
} else if(!licence.compare(0, 39, "http://creativecommons.org/licenses/by/")) {
|
||||
} else if (licence.find ("://creativecommons.org/licenses/by/") != std::string::npos) {
|
||||
sprintf(shortlicense, "CC-BY");
|
||||
} else if(!licence.compare("http://creativecommons.org/licenses/sampling+/1.0/")) {
|
||||
} else if (licence.find ("://creativecommons.org/licenses/sampling+/1.0/") != std::string::npos) {
|
||||
sprintf(shortlicense, "sampling+");
|
||||
} else if(!licence.compare(0, 40, "http://creativecommons.org/publicdomain/")) {
|
||||
} else if (licence.find ("://creativecommons.org/publicdomain/") != std::string::npos) {
|
||||
sprintf(shortlicense, "PD");
|
||||
} else {
|
||||
snprintf(shortlicense, 64, "%s", licence.c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user