Parameterize clip library URL

Also prefer http since our distributed builds may or may not
be able to find SSL certificates on a given target system.
This commit is contained in:
Robin Gareus 2022-09-11 20:14:35 +02:00
parent 38c5ae4237
commit d453297381
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 2 additions and 1 deletions

View File

@ -267,6 +267,7 @@ CONFIG_VARIABLE (std::string, tutorial_manual_url, "tutorial-manual-url", "http:
CONFIG_VARIABLE (std::string, reference_manual_url, "reference-manual-url", "http://manual.ardour.org/")
CONFIG_VARIABLE (std::string, updates_url, "updates-url", "http://ardour.org/whatsnew.html")
CONFIG_VARIABLE (std::string, donate_url, "donate-url", "http://community.ardour.org/donate")
CONFIG_VARIABLE (std::string, clip_library_url, "clip-library-url", "http://ardour.org/libraries.xml")
/* video timeline configuration */
CONFIG_VARIABLE (std::string, xjadeo_binary, "xjadeo-binary", "")

View File

@ -63,7 +63,7 @@ LibraryFetcher::get_descriptions ()
}
std::string buf;
curl_easy_setopt (curl, CURLOPT_URL, X_("https://ardour.org/libraries.xml"));
curl_easy_setopt (curl, CURLOPT_URL, Config->get_clip_library_url().c_str());
curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, CurlWrite_CallbackFunc_StdString);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &buf);