Lock YouTube API data for now

This commit is contained in:
Sam Carlton 2023-02-11 16:18:27 -06:00
parent e7666394fd
commit f1be7ca87e

View file

@ -1,5 +1,6 @@
import fs from 'fs-extra'
import { google } from 'googleapis'
import axios from 'axios'
import { playlists, benchmarksPlaylistId } from './playlists.js'
@ -161,10 +162,12 @@ async function getYouTubeVideos ( options = {} ) {
export async function saveYouTubeVideos () {
//
const youtubeVideos = await getYouTubeVideos()
// const youtubeVideos = await getYouTubeVideos()
// Locked previously sucessful YouTube API data for now
const youtubeVideos = await axios( process.env.VIDEO_SOURCE )
.then( response => response.data )
//
// Save to JSON
await fs.outputJson( youtubeVideoPath, youtubeVideos )