authorize('download', $playlist); return response()->download( $download->getDownloadablePath( $playlist->is_smart ? $smartPlaylistService->getSongs($playlist, $user) : $repository->getByStandardPlaylist($playlist, $user) ) ); } }