fix URL's for freesound (debian patch)
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 10 Oct 2008 09:53:03 +0000 (09:53 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 10 Oct 2008 09:53:03 +0000 (09:53 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@3907 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/sfdb_freesound_mootcher.cc

index 6c62939493cd54f30973638672f350d89a52a854..7daecfc5935f10a740518e04bb76d3f4740aa664 100644 (file)
@@ -164,7 +164,7 @@ int                 Mootcher::doLogin(std::string login, std::string password)
                curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, -1);\r
 \r
                // the url to get\r
-               std::string login_url = "http://freesound.iua.upf.edu/forum/login.php";\r
+               std::string login_url = "http://www.freesound.org/forum/login.php";\r
                curl_easy_setopt(curl, CURLOPT_URL, login_url.c_str() );\r
 \r
                // perform online request\r
@@ -234,7 +234,7 @@ std::string Mootcher::searchText(std::string word)
                        curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, -1);\r
                        \r
                        // the url to get\r
-                       std::string search_url = "http://freesound.iua.upf.edu/searchTextXML.php";\r
+                       std::string search_url = "http://www.freesound.org/searchTextXML.php";\r
                        curl_easy_setopt(curl, CURLOPT_URL, search_url.c_str());\r
 \r
                        // perform the online search \r
@@ -300,7 +300,7 @@ void                Mootcher::GetXml(std::string ID, struct MemoryStruct &xml_page)
                curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&xml_page);\r
 \r
                // URL to get\r
-               std::string getxml_url = "http://freesound.iua.upf.edu/samplesViewSingleXML.php?id=";\r
+               std::string getxml_url = "http://www.freesound.org/samplesViewSingleXML.php?id=";\r
                getxml_url += ID;\r
 \r
                curl_easy_setopt(curl, CURLOPT_URL, getxml_url.c_str() );\r
@@ -460,7 +460,7 @@ std::string Mootcher::getFile(std::string ID)
 \r
                                // create the download url, this url will also update the download statics on the site\r
                                std::string audioURL;\r
-                               audioURL += "http://freesound.iua.upf.edu/samplesDownload.php?id=";\r
+                               audioURL += "http://www.freesound.org/samplesDownload.php?id=";\r
                                audioURL += ID;\r
 \r
                                setcUrlOptions();\r