std::vector<Config::Addon>& addon_config) :
m_downloader(),
m_addon_directory(addon_directory),
- m_repository_url("http://addons.supertux.googlecode.com/git/index-0_4_0.nfo"),
+ m_repository_url("https://raw.githubusercontent.com/SuperTuxTeam/addons/master/index-0_4_0.nfo"),
m_addon_config(addon_config),
m_installed_addons(),
m_repository_addons(),
void
Downloader::download(const std::string& url, const std::string& filename)
{
+ log_info << "download: " << url << " to " << filename << std::endl;
std::unique_ptr<PHYSFS_file, int(*)(PHYSFS_File*)> fout(PHYSFS_openWrite(filename.c_str()),
PHYSFS_close);
download(url, my_curl_physfs_write, fout.get());
TransferStatusPtr
Downloader::request_download(const std::string& url, const std::string& outfile)
{
+ log_info << "request_download: " << url << std::endl;
std::unique_ptr<Transfer> transfer(new Transfer(*this, m_next_transfer_id++, url, outfile));
curl_multi_add_handle(m_multi_handle, transfer->get_curl_handle());
m_transfers.push_back(std::move(transfer));