Cleaned up soundcloud
This commit is contained in:
parent
faf4052fda
commit
d6a4f2f713
1 changed files with 58 additions and 57 deletions
|
@ -26,7 +26,10 @@ class Application_Model_Soundcloud
|
||||||
public function uploadTrack($filepath, $filename, $description,
|
public function uploadTrack($filepath, $filename, $description,
|
||||||
$tags=array(), $release=null, $genre=null)
|
$tags=array(), $release=null, $genre=null)
|
||||||
{
|
{
|
||||||
if ($this->getToken()) {
|
|
||||||
|
if (!$this->getToken()) {
|
||||||
|
throw new NoSoundCloundToken();
|
||||||
|
}
|
||||||
if (count($tags)) {
|
if (count($tags)) {
|
||||||
$tags = join(" ", $tags);
|
$tags = join(" ", $tags);
|
||||||
$tags = $tags." ".Application_Model_Preference::GetSoundCloudTags();
|
$tags = $tags." ".Application_Model_Preference::GetSoundCloudTags();
|
||||||
|
@ -82,9 +85,7 @@ class Application_Model_Soundcloud
|
||||||
);
|
);
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
} else {
|
|
||||||
throw new NoSoundCloundToken();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function uploadSoundcloud($id)
|
public static function uploadSoundcloud($id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue