public function submitVideoByID($id)
 {
     $videoData = new videoData();
     $postTitle = $videoData->getTitleByID($id);
     $postLink = 'https://youtube.com/watch?v=' . $id;
     $this->reddit->createStory($postTitle, $postLink, $this->subreddit);
     $this->writeToLog($postTitle, $postLink);
 }
/**
 * Exits if latest video is already in database.
 */
function checkVideoExists()
{
    $videoData = new videoData();
    $youtube = new youtube();
    $id = $youtube->getLatestVideoID();
    if ($videoData->checkVideoExists($id)) {
        exit;
    }
    return $id;
}