mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Lock YouTube API data for now
This commit is contained in:
parent
e7666394fd
commit
f1be7ca87e
1 changed files with 6 additions and 3 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue