Support multiple newleaf urls

This commit is contained in:
Ajay Ramachandran
2021-06-03 11:38:21 -04:00
parent 1e5849f504
commit ec081cf0c5
7 changed files with 10 additions and 10 deletions

View File

@@ -265,7 +265,7 @@ async function autoModerateSubmission(apiVideoInfo: APIVideoInfo,
}
async function getYouTubeVideoInfo(videoID: VideoID, ignoreCache = false): Promise<APIVideoInfo> {
if (config.newLeafURL !== null) {
if (config.newLeafURLs !== null) {
return YouTubeAPI.listVideos(videoID, ignoreCache);
} else {
return null;