function sp_ev_get_all_videos($authors)
{
    $new_videos = array();
    foreach ($authors as $author) {
        switch ($author['host_id']) {
            case 'youtube':
                $videos = sp_ev_fetch_youtube_videos($author['author_id']);
                break;
            case 'vimeo':
                $videos = sp_ev_fetch_vimeo_videos($author['author_id'], $author['developer_key'], $author['secret_key']);
                break;
            case 'dotsub':
                $videos = sp_ev_fetch_dotsub_videos($author['author_id']);
                break;
        }
        // append $videos to the end of $new_videos
        array_splice($new_videos, count($new_array), 0, $videos);
    }
    return $new_videos;
}
function sp_ev_get_all_videos($authors)
{
    $new_videos = array();
    foreach ($authors as $author) {
        switch ($author['host_id']) {
            case 'youtube':
                $videos = sp_ev_fetch_youtube_videos($author);
                break;
            case 'vimeo':
                $videos = sp_ev_fetch_vimeo_videos($author);
                break;
            case 'dotsub':
                $videos = sp_ev_fetch_dotsub_videos($author);
                break;
            case 'wistia':
                $videos = sp_ev_fetch_wistia_videos($author);
                break;
        }
        // append $videos to the end of $new_videos
        if ($videos) {
            array_splice($new_videos, count($new_array), 0, $videos);
        }
    }
    return $new_videos;
}