From d453297381c88cd0d4108da47bebd0a3ea58e6ef Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 11 Sep 2022 20:14:35 +0200 Subject: [PATCH] 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. --- libs/ardour/ardour/rc_configuration_vars.h | 1 + libs/ardour/library.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/ardour/ardour/rc_configuration_vars.h b/libs/ardour/ardour/rc_configuration_vars.h index f9e5633310..d5834206a7 100644 --- a/libs/ardour/ardour/rc_configuration_vars.h +++ b/libs/ardour/ardour/rc_configuration_vars.h @@ -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", "") diff --git a/libs/ardour/library.cc b/libs/ardour/library.cc index 236583b08a..0d3483e23a 100644 --- a/libs/ardour/library.cc +++ b/libs/ardour/library.cc @@ -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);