diff --git a/fetchRAPLA.py b/fetchRAPLA.py index 93a93cf..26209f9 100644 --- a/fetchRAPLA.py +++ b/fetchRAPLA.py @@ -103,7 +103,7 @@ async def getNewRapla(url: str, testing=False): elif parsed[0] == 2: return await buildICALfromKey(parsed[1], onlyUpdate=False, testing=testing) fileInURL = url.find("file=") - kurs = url[fileInURL + 5:].upper() + kurs = url[fileInURL + 5:].replace(" ", "").upper() if url[-5:] != ".ical": try: async with httpx.AsyncClient() as s: @@ -210,7 +210,7 @@ async def buildICALfromKey(url, onlyUpdate, testing=False): else: return 200 else: - kursname = page.text[page.text.find("