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 Config::getPublicUrl() . "rest/media/{$fileId}/download/{$key}.{$ext}"; } return parent::getDbDownloadUrl(); } }