getDbPodcastId(); // We may have more station podcasts later, so use this instead of checking the id stored in Preference $podcast = StationPodcastQuery::create()->findOneByDbPodcastId($podcastId); if ($podcast) { $fileId = $this->getDbFileId(); // FIXME: this is an interim solution until we can do better... $file = CcFilesQuery::create()->findPk($fileId); $ext = FileDataHelper::getAudioMimeTypeArray()[$file->getDbMime()]; $key = Application_Model_Preference::getStationPodcastDownloadKey(); return Application_Common_HTTPHelper::getStationUrl()."rest/media/$fileId/download/$key.$ext"; } return parent::getDbDownloadUrl(); } }