Switch Podcast reader to use simplepie

This commit is contained in:
drigato 2015-09-23 14:47:40 -04:00
parent c5b00e56bb
commit 727abac0b8
4 changed files with 89 additions and 57 deletions

View file

@ -51,7 +51,11 @@ class Application_Service_PodcastService extends Application_Service_ThirdPartyC
public static function getPodcastFeed($podcastUrl)
{
try {
return Feed::loadRss($podcastUrl);
$feed = new SimplePie();
$feed->set_feed_url($podcastUrl);
$feed->set_cache_location($_SERVER['DOCUMENT_ROOT'] . '/rss/cache_files');
$feed->init();
return $feed;
} catch (FeedException $e) {
return false;
}
@ -61,7 +65,6 @@ class Application_Service_PodcastService extends Application_Service_ThirdPartyC
{
}
/**
* Given an array of track identifiers, download RSS feed tracks
*