CC-2795: Give option to set download flag of recorded shows uploaded
to Soundcloud by default - fixed name of Soundcloud Model class
This commit is contained in:
parent
d4063a8234
commit
b4d4c54c31
5 changed files with 5 additions and 6 deletions
|
@ -13,6 +13,7 @@ require_once 'DB.php';
|
|||
|
||||
require_once 'Preference.php';
|
||||
require_once __DIR__.'/controllers/plugins/RabbitMqPlugin.php';
|
||||
require_once 'soundcloud-api/Services/Soundcloud.php';
|
||||
|
||||
global $CC_CONFIG, $CC_DBC;
|
||||
$dsn = $CC_CONFIG['dsn'];
|
||||
|
|
|
@ -400,7 +400,7 @@ class ApiController extends Zend_Controller_Action
|
|||
$tags = array_merge($hosts, array($show_name));
|
||||
|
||||
try {
|
||||
$soundcloud = new Application_Model_AtSoundcloud();
|
||||
$soundcloud = new Application_Model_Soundcloud();
|
||||
$soundcloud_id = $soundcloud->uploadTrack($file->getFilePath(), $tmpTitle, $description, $tags, $show_start_time, $show_genre);
|
||||
$file->setSoundCloudFileId($soundcloud_id);
|
||||
break;
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once 'soundcloud-api/Services/Soundcloud.php';
|
||||
|
||||
class Application_Model_AtSoundcloud {
|
||||
class Application_Model_Soundcloud {
|
||||
|
||||
private $_soundcloud;
|
||||
|
||||
|
|
|
@ -944,7 +944,7 @@ class Application_Model_StoredFile {
|
|||
$genre = $file->getDbGenre();
|
||||
$release = $file->getDbYear();
|
||||
try {
|
||||
$soundcloud = new Application_Model_AtSoundcloud();
|
||||
$soundcloud = new Application_Model_Soundcloud();
|
||||
$soundcloud_id = $soundcloud->uploadTrack($this->getFilePath(), $this->getName(), $description, $tag, $release, $genre);
|
||||
$this->setSoundCloudFileId($soundcloud_id);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue