CC-1665: Scheduled stream rebroadcasting and recording

-more work to make webstreams behave like playlist creator
This commit is contained in:
Martin Konecny 2012-08-21 18:55:38 -04:00
parent 462542bf68
commit 9885374d34
5 changed files with 57 additions and 25 deletions

View file

@ -6,7 +6,13 @@ class Application_Model_Webstream implements Application_Model_LibraryEditable
public function __construct($webstream)
{
//TODO: hacky...
Logging::info("x ".$webstream);
if (is_int($webstream)) {
$this->webstream = CcWebstreamQuery::create()->findPK($webstream);
} else {
$this->webstream = $webstream;
}
}
public function getOrm()
@ -41,6 +47,11 @@ class Application_Model_Webstream implements Application_Model_LibraryEditable
return "";
}
public function getLength()
{
return $this->getDefaultLength();
}
public function getDescription()
{
return $this->webstream->getDbDescription();