* SAAS-1212 - fix validation errors in station podcast rss
* Append podcast title to heading in episodes view
This commit is contained in:
parent
041adb5c1f
commit
c12848b2de
5 changed files with 16 additions and 5 deletions
|
@ -237,7 +237,8 @@ class PodcastTask implements AirtimeTask {
|
|||
* @return bool true if the podcast polling interval has passed
|
||||
*/
|
||||
public function shouldBeRun() {
|
||||
return PodcastManager::hasPodcastPollIntervalPassed();
|
||||
$overQuota = Application_Model_Systemstatus::isDiskOverQuota();
|
||||
return !$overQuota && PodcastManager::hasPodcastPollIntervalPassed();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -160,7 +160,7 @@ class Application_Service_PodcastService
|
|||
|
||||
$podcast->setDbDescription(Application_Model_Preference::GetStationDescription());
|
||||
$podcast->setDbLink(Application_Common_HTTPHelper::getStationUrl());
|
||||
$podcast->setDbLanguage(Application_Model_Preference::GetLocale());
|
||||
$podcast->setDbLanguage(explode('_', Application_Model_Preference::GetLocale())[0]);
|
||||
$podcast->setDbCreator(Application_Model_Preference::GetStationName());
|
||||
$podcast->setDbOwner(self::getOwnerId());
|
||||
$podcast->save();
|
||||
|
@ -406,7 +406,9 @@ class Application_Service_PodcastService
|
|||
|
||||
//category
|
||||
foreach($itunesCategories as $c) {
|
||||
self::addEscapedChild($item, "category", $c);
|
||||
if (!empty($c)) {
|
||||
self::addEscapedChild($item, "category", $c);
|
||||
}
|
||||
}
|
||||
|
||||
//guid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue