From ae04c236c74194eb4d0bde49a1991592e9136cd0 Mon Sep 17 00:00:00 2001 From: Renarde-Dev Date: Mon, 6 May 2024 12:56:24 +0200 Subject: [PATCH] Fix location error --- tools/podcast.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/podcast.php b/tools/podcast.php index 55570f5..bcefb9e 100644 --- a/tools/podcast.php +++ b/tools/podcast.php @@ -27,9 +27,9 @@ class Podcast { function parseFeed() { // Renew cache if older than 5 minutes - if (time() - filemtime("assets/podcast.rss") > 5*60) { + if (time() - filemtime("tools/podcast.rss") > 5*60) { $data = file_get_contents("https://feeds.acast.com/public/shows/le-plus-beau-des-voyages"); - file_put_contents("assets/podcast.rss",$data); + file_put_contents("tools/podcast.rss",$data); } $cachedFeedData = file_get_contents("tools/podcast.rss"); return simplexml_load_string($cachedFeedData,'SimpleXMLElement', LIBXML_NOCDATA);;