moved misplaced docstring
This commit is contained in:
parent
d08b62dd39
commit
1c084a3101
2 changed files with 5 additions and 8 deletions
|
@ -396,15 +396,13 @@ class ApiController extends Zend_Controller_Action
|
||||||
$this->view->fileid = $file_id;
|
$this->view->fileid = $file_id;
|
||||||
$this->view->showinstanceid = $show_instance_id;
|
$this->view->showinstanceid = $show_instance_id;
|
||||||
|
|
||||||
|
$showCanceled = false;
|
||||||
$showCanceled = false;
|
$file = Application_Model_StoredFile::Recall($file_id);
|
||||||
$file = Application_Model_StoredFile::Recall($file_id);
|
|
||||||
//$show_instance = $this->_getParam('show_instance');
|
//$show_instance = $this->_getParam('show_instance');
|
||||||
|
|
||||||
$show_name = null;
|
$show_name = null;
|
||||||
try {
|
try {
|
||||||
$show_inst = new Application_Model_ShowInstance($show_instance_id);
|
$show_inst = new Application_Model_ShowInstance($show_instance_id);
|
||||||
|
|
||||||
$show_inst->setRecordedFile($file_id);
|
$show_inst->setRecordedFile($file_id);
|
||||||
$show_name = $show_inst->getName();
|
$show_name = $show_inst->getName();
|
||||||
$show_genre = $show_inst->getGenre();
|
$show_genre = $show_inst->getGenre();
|
||||||
|
|
|
@ -123,17 +123,16 @@ class AirtimeNotifier(Notifier):
|
||||||
self.logger.error("traceback: %s", traceback.format_exc())
|
self.logger.error("traceback: %s", traceback.format_exc())
|
||||||
|
|
||||||
|
|
||||||
|
def update_airtime(self, event):
|
||||||
"""
|
"""
|
||||||
Update airtime with information about files discovered in our
|
Update airtime with information about files discovered in our
|
||||||
watched directories.
|
watched directories.
|
||||||
event: a dict() object with the following attributes:
|
event: a dict() object with the following attributes:
|
||||||
-filepath
|
-filepath
|
||||||
-mode
|
-mode
|
||||||
-data
|
-data
|
||||||
-is_recorded_show
|
-is_recorded_show
|
||||||
"""
|
"""
|
||||||
def update_airtime(self, event):
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.logger.info("updating filepath: %s ", event['filepath'])
|
self.logger.info("updating filepath: %s ", event['filepath'])
|
||||||
filepath = event['filepath']
|
filepath = event['filepath']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue