Response
The script will have to be recreated from the ground up. I've made multiple attempts to fix it with no luck. It either stopped working because of the last server migration, because of a YouTube API update, or because of the site's upgrade from PHP 5 to PHP 7.