Corrected API to work with new nextepisode function code changes.