'Returns the previous upload with the given video id.'

def _get_previous_upload(self, edx_video_id):

    return next((video for video in self.previous_uploads if (video['edx_video_id'] == edx_video_id)))
