CC-2795: Give option to set download flag of recorded shows

uploaded to Soundcloud by default

- done
This commit is contained in:
James 2011-09-29 17:10:17 -04:00
parent 8ef8dbc668
commit 7e3d25eeaa
8 changed files with 73 additions and 8 deletions

View file

@ -40,13 +40,15 @@ class Application_Model_AtSoundcloud {
$tags = Application_Model_Preference::GetSoundCloudTags();
}
$downloadable = Application_Model_Preference::GetSoundCloudDownloadbleOption() == '1'?true:false;
$track_data = array(
'track[sharing]' => 'private',
'track[title]' => $filename,
'track[asset_data]' => '@' . $filepath,
'track[tag_list]' => $tags,
'track[description]' => $description,
'track[downloadable]' => true,
'track[downloadable]' => $downloadable,
);