Merge branch 'devel' of dev.sourcefabric.org:airtime into devel

This commit is contained in:
Martin Konecny 2011-11-18 11:59:27 -05:00
commit c773c5c674
4 changed files with 26 additions and 3 deletions

View file

@ -730,6 +730,28 @@ class ScheduleController extends Zend_Controller_Action
Application_Model_Schedule::createNewFormSections($this->view);
$this->view->newForm = $this->view->render('schedule/add-show-form.phtml');
}else{
$this->view->what = $formWhat;
$this->view->when = $formWhen;
$this->view->repeats = $formRepeats;
$this->view->who = $formWho;
$this->view->style = $formStyle;
$this->view->rr = $formRecord;
$this->view->absoluteRebroadcast = $formAbsoluteRebroadcast;
$this->view->rebroadcast = $formRebroadcast;
$this->view->addNewShow = true;
//the form still needs to be "update" since
//the validity test failed.
if ($data['add_show_id'] != -1){
$this->view->addNewShow = false;
}
if (!$startDateModified){
$formWhen->getElement('add_show_start_date')->setOptions(array('disabled' => true));
}
$this->view->form = $this->view->render('schedule/add-show-form.phtml');
}
}else{
$userInfo = Zend_Auth::getInstance()->getStorage()->read();

View file

@ -530,7 +530,7 @@ class Application_Model_Preference
public static function GetLatestLink(){
$link = self::GetValue("latest_link");
if($link == null || strlen($link) == 0) {
return "http://www.sourcefabric.org/en/airtime/download/";
return 'http://airtime.sourcefabric.org';
} else {
return $link;
}

View file

@ -1516,7 +1516,6 @@ div.success{
list-style-type:none;
margin:0 0 8px 0;
padding:0;
height:25px;
display:block;
}
/*

View file

@ -143,7 +143,9 @@ def output_to(output_type, type, bitrate, host, port, pass, mount_point, url, de
url = !url_ref,
genre = !genre_ref,
name = !description_ref,
user = !user_ref)
user = !user_ref,
on_error = on_error,
on_connect = on_connect)
if bitrate == 24 then
ignore(output.shoutcast(%mp3(bitrate = 24),s))
elsif bitrate == 32 then