From ceb1a46b665440c45b97071a8b233ff44275ddaf Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 3 Apr 2024 21:14:43 +0200 Subject: Sponsorblock: add api_endpoint option --- src/plugins/Youtube.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/Youtube.cpp b/src/plugins/Youtube.cpp index bcb6cf6..1a29110 100644 --- a/src/plugins/Youtube.cpp +++ b/src/plugins/Youtube.cpp @@ -3072,7 +3072,7 @@ namespace QuickMedia { return; } - const std::string sponsorblock_url = "https://sponsor.ajay.app/api/skipSegments?videoID=" + video_id; + const std::string sponsorblock_url = get_config().youtube.sponsorblock.api_endpoint + "/api/skipSegments?videoID=" + video_id; Json::Value json_root; if(page->download_json(json_root, sponsorblock_url, {}) != DownloadResult::OK) return; -- cgit v1.2.3