SAAS-1063: REST API for podcasts

/rest/podcast mostly done
This commit is contained in:
drigato 2015-09-18 08:15:48 -04:00
parent ea0121f5c1
commit f6f23864ce
3 changed files with 181 additions and 18 deletions

View file

@ -19,16 +19,24 @@ class Application_Service_PodcastService
}
/**
* Returns true if the given podcast URL is valid.
* Returns parsed rss feed, or false if the given URL cannot be downloaded
*
* @param $podcastUrl String containing the podcast feed URL
*
* @return bool
* @return mixed
*/
public static function validatePodcastUrl($podcastUrl)
public static function getPodcastFeed($podcastUrl)
{
//TODO
return true;
try {
return Feed::loadRss($podcastUrl);
} catch (FeedException $e) {
return false;
}
}
public static function getPodcastEpisodeFeed($podcast)
{
}
}