Fix location error
This commit is contained in:
parent
a04189a456
commit
ae04c236c7
1 changed files with 2 additions and 2 deletions
|
@ -27,9 +27,9 @@ class Podcast {
|
||||||
|
|
||||||
function parseFeed() {
|
function parseFeed() {
|
||||||
// Renew cache if older than 5 minutes
|
// 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");
|
$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");
|
$cachedFeedData = file_get_contents("tools/podcast.rss");
|
||||||
return simplexml_load_string($cachedFeedData,'SimpleXMLElement', LIBXML_NOCDATA);;
|
return simplexml_load_string($cachedFeedData,'SimpleXMLElement', LIBXML_NOCDATA);;
|
||||||
|
|
Loading…
Reference in a new issue