From 9a291e004bedcff172378c978a3d95f86ffee1c5 Mon Sep 17 00:00:00 2001 From: Robert Eggl Date: Sat, 27 Jul 2024 14:44:40 +0200 Subject: [PATCH] Fixes Canisius API URL (#412) --- rogue-thi-app/pages/api/canisius.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rogue-thi-app/pages/api/canisius.js b/rogue-thi-app/pages/api/canisius.js index f7906bf1..f54d978d 100644 --- a/rogue-thi-app/pages/api/canisius.js +++ b/rogue-thi-app/pages/api/canisius.js @@ -11,7 +11,8 @@ import { translateMeals } from '../../lib/backend-utils/translation-utils' const pdf = require('pdf-parse') const CACHE_TTL = 60 * 60 * 1000 // 60m -const URL = 'http://www.canisiusstiftung.de/upload/speiseplan.pdf' +const URL = + 'http://www.canisiusstiftung.de/wp-content/uploads/Speiseplan/speiseplan.pdf' const TITLE_REGEX = /[A-Z][a-z]*, den [0-9]{1,2}.[0-9]{1,2}.[0-9]{4}/gm const DATE_REGEX = /[0-9]{1,2}.[0-9]{1,2}.[0-9]{4}/gm