From a3b3c40d77e833616c0fb2bfed0518869082719d Mon Sep 17 00:00:00 2001 From: Hannes Braun Date: Mon, 15 May 2023 14:35:55 +0200 Subject: [PATCH] CourseListParser: don't replace https with httpss --- .../org/mosad/thecitadelofricks/hsoparser/CourseListParser.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/org/mosad/thecitadelofricks/hsoparser/CourseListParser.kt b/src/main/kotlin/org/mosad/thecitadelofricks/hsoparser/CourseListParser.kt index 68f28dc..6291d4c 100644 --- a/src/main/kotlin/org/mosad/thecitadelofricks/hsoparser/CourseListParser.kt +++ b/src/main/kotlin/org/mosad/thecitadelofricks/hsoparser/CourseListParser.kt @@ -44,7 +44,7 @@ class CourseListParser { courseHTML.select("ul.index-group").select("li.Class").select("a[href]").forEachIndexed { _, element -> courseLinkList[element.text()] = Course( element.text(), - element.attr("href").replace("http", "https") + element.attr("href").replace("http:", "https:") ) } logger.info("successfully retrieved course List")