From 0ba03231b0dbccd0cfba14b5de6f0ca220f35846 Mon Sep 17 00:00:00 2001 From: Fancy2209 Date: Mon, 17 Feb 2025 19:42:42 -0100 Subject: [PATCH] Fix OSCRepo not fetching the right file --- src/repos/OSCRepo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/repos/OSCRepo.cpp b/src/repos/OSCRepo.cpp index 3a62c83..b70a13d 100644 --- a/src/repos/OSCRepo.cpp +++ b/src/repos/OSCRepo.cpp @@ -12,7 +12,7 @@ using namespace rapidjson; std::vector> OSCRepo::loadPackages() { std::vector> result; - std::string directoryUrl = this->url; + std::string directoryUrl = this->url + "/api/v3/contents"; std::string response; bool success = downloadFileToMemory(directoryUrl, &response); @@ -25,7 +25,7 @@ std::vector> OSCRepo::loadPackages() // update repo url this->url.replace(0, 5, "http"); - directoryUrl = this->url; + directoryUrl = this->url + "/api/v3/contents"; // retry fetch success = downloadFileToMemory(directoryUrl, &response);