Add SoundCloud update and download tasks to Celery backend; requires airtime-celery reinstall

This commit is contained in:
Duncan Sommerville 2015-10-30 16:10:16 -04:00
parent bf97c42167
commit 4f281a30ed
9 changed files with 131 additions and 83 deletions

View file

@ -73,7 +73,7 @@ class Application_Service_PublishService {
);
}
/** @noinspection PhpUnusedPrivateMethodInspection
/**
* Reflective accessor for SoundCloud publication status for the
* file with the given ID
*
@ -84,10 +84,11 @@ class Application_Service_PublishService {
*/
private static function getSoundCloudPublishStatus($fileId) {
$soundcloudService = new Application_Service_SoundcloudService();
return ($soundcloudService->getServiceId($fileId) != 0);
return ($soundcloudService->referenceExists($fileId));
}
/** @noinspection PhpUnusedPrivateMethodInspection
/**
*
* Reflective accessor for Station podcast publication status for the
* file with the given ID
*