diff --git a/airtime_mvc/application/common/TaskManager.php b/airtime_mvc/application/common/TaskManager.php index 4acbd9387..d8ab9c10d 100644 --- a/airtime_mvc/application/common/TaskManager.php +++ b/airtime_mvc/application/common/TaskManager.php @@ -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(); } /** diff --git a/airtime_mvc/application/forms/PodcastPreferences.php b/airtime_mvc/application/forms/PodcastPreferences.php index a5706819b..adf86c84e 100644 --- a/airtime_mvc/application/forms/PodcastPreferences.php +++ b/airtime_mvc/application/forms/PodcastPreferences.php @@ -10,8 +10,12 @@ class Application_Form_PodcastPreferences extends Zend_Form_SubForm { _("Public"), _("Private"), )); + $stationPodcastPrivacy->setSeparator(' '); + $stationPodcastPrivacy->addDecorator('HtmlTag', array('tag' => 'dd', + 'id'=>"stationPodcastPrivacy-element", + 'class' => 'radio-inline-list', + )); $stationPodcastPrivacy->setValue($isPrivate); - $stationPodcastPrivacy->setDecorators(array('ViewHelper', 'Label')); $this->addElement($stationPodcastPrivacy); $stationPodcast = PodcastQuery::create()->findOneByDbId(Application_Model_Preference::getStationPodcastId()); @@ -22,7 +26,6 @@ class Application_Form_PodcastPreferences extends Zend_Form_SubForm { ->setRequired(false) ->setLabel(_("Feed URL")) ->setValue($url); - $feedUrl->setDecorators(array('ViewHelper', 'Label')); $this->addElement($feedUrl); } diff --git a/airtime_mvc/application/services/PodcastService.php b/airtime_mvc/application/services/PodcastService.php index 17d11fb34..8183a1d80 100644 --- a/airtime_mvc/application/services/PodcastService.php +++ b/airtime_mvc/application/services/PodcastService.php @@ -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(); @@ -387,8 +387,10 @@ class Application_Service_PodcastService // Need to split categories into separate tags $itunesCategories = explode(",", $podcast->getDbItunesCategory()); foreach ($itunesCategories as $c) { - $category = $channel->addChild("xmlns:itunes:category"); - $category->addAttribute("text", $c); + if (!empty($c)) { + $category = $channel->addChild("xmlns:itunes:category"); + $category->addAttribute("text", $c); + } } $episodes = PodcastEpisodesQuery::create()->filterByDbPodcastId($stationPodcastId)->find(); @@ -406,7 +408,9 @@ class Application_Service_PodcastService //category foreach($itunesCategories as $c) { - self::addEscapedChild($item, "category", $c); + if (!empty($c)) { + self::addEscapedChild($item, "category", $c); + } } //guid @@ -437,7 +441,7 @@ class Application_Service_PodcastService //itunes:explicit - skip this? //itunes:duration - self::addEscapedChild($item, "xmlns:itunes:duration", $publishedFile->getDbLength()); + self::addEscapedChild($item, "xmlns:itunes:duration", explode('.', $publishedFile->getDbLength())[0]); } //Format it nicely with newlines... diff --git a/airtime_mvc/application/views/scripts/index/index.phtml b/airtime_mvc/application/views/scripts/index/index.phtml index 71b275cb0..37e304def 100644 --- a/airtime_mvc/application/views/scripts/index/index.phtml +++ b/airtime_mvc/application/views/scripts/index/index.phtml @@ -70,7 +70,7 @@
-
Now Playing:
+
Now Playing: