Added warning for uploading unknown file types
This commit is contained in:
parent
048da282fa
commit
92a5bf51a6
2 changed files with 7 additions and 4 deletions
|
@ -490,6 +490,8 @@ class LibraryController extends Zend_Controller_Action
|
||||||
$this->view->sc_id = $file->getSoundCloudId();
|
$this->view->sc_id = $file->getSoundCloudId();
|
||||||
$this->view->error_code = $file->getSoundCloudErrorCode();
|
$this->view->error_code = $file->getSoundCloudErrorCode();
|
||||||
$this->view->error_msg = $file->getSoundCloudErrorMsg();
|
$this->view->error_msg = $file->getSoundCloudErrorMsg();
|
||||||
|
} else {
|
||||||
|
Logging::warn("Trying to upload unknown type: $type with id: $id");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,8 @@ class Application_Model_Soundcloud
|
||||||
return $token;
|
return $token;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function uploadTrack($filepath, $filename, $description, $tags=array(), $release=null, $genre=null)
|
public function uploadTrack($filepath, $filename, $description,
|
||||||
|
$tags=array(), $release=null, $genre=null)
|
||||||
{
|
{
|
||||||
if ($this->getToken()) {
|
if ($this->getToken()) {
|
||||||
if (count($tags)) {
|
if (count($tags)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue