🔥 remove remaining legacy saas code
This commit is contained in:
parent
e232469551
commit
0f5cb8b1f8
123 changed files with 10 additions and 10171 deletions
|
@ -1,6 +1,5 @@
|
|||
<?php
|
||||
|
||||
class PodcastLimitReachedException extends Exception {}
|
||||
|
||||
class InvalidPodcastException extends Exception {}
|
||||
|
||||
|
@ -18,22 +17,6 @@ class Application_Service_PodcastService
|
|||
"owner"
|
||||
);
|
||||
|
||||
/**
|
||||
* There is maximum of 50 podcasts allowed in the library - to limit
|
||||
* resource consumption. This function returns true if the podcast
|
||||
* limit has been reached.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function PodcastLimitReached()
|
||||
{
|
||||
if (PodcastQuery::create()->count() >= 50) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns parsed rss feed, or false if the given URL cannot be downloaded
|
||||
*
|
||||
|
@ -62,14 +45,9 @@ class Application_Service_PodcastService
|
|||
* @return array Podcast Array with a full list of episodes
|
||||
* @throws Exception
|
||||
* @throws InvalidPodcastException
|
||||
* @throws PodcastLimitReachedException
|
||||
*/
|
||||
public static function createFromFeedUrl($feedUrl)
|
||||
{
|
||||
if (self::PodcastLimitReached() && LIBRETIME_ENABLE_BILLING) {
|
||||
throw new PodcastLimitReachedException();
|
||||
}
|
||||
|
||||
//TODO: why is this so slow?
|
||||
$rss = self::getPodcastFeed($feedUrl);
|
||||
if (!$rss) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue