feat(worker): load callback details from config (#1994)

This commit is contained in:
Jonas L 2022-07-26 14:18:41 +02:00 committed by GitHub
parent 2d334d3ede
commit d93731807c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 9 deletions

View file

@ -180,13 +180,9 @@ class Application_Service_PodcastEpisodeService extends Application_Service_Thir
*/
private function _download($id, $url, $title, $album_override, $track_title = null)
{
$CC_CONFIG = Config::getConfig();
$stationUrl = Config::getPublicUrl();
$data = [
'id' => $id,
'url' => $url,
'callback_url' => $stationUrl . 'rest/media',
'api_key' => $CC_CONFIG['apiKey'][0],
'podcast_name' => $title,
'album_override' => $album_override,
'track_title' => $track_title,