Skip to content

Commit

Permalink
change: updated the youtube api key.
Browse files Browse the repository at this point in the history
  • Loading branch information
liwang2019 committed Dec 30, 2024
1 parent 6a917a5 commit 9c4e419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v2/util/gen-templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async function genSlideTemplate(lang) {

async function genEnVideos() {
const playlists = [];
const data = await http.get('https://www.googleapis.com/youtube/v3/playlists?key=AIzaSyC2Tenfqm3olqBB2o099SHdneXhquIYliM&channelId=UCXVmwF-UCScv2ftsGoMqxhw&part=snippet');
const data = await http.get('https://www.googleapis.com/youtube/v3/playlists?key=AIzaSyANu5r1u3Zt6RKS9j9NiYsJEXvo-UBFiww&channelId=UCXVmwF-UCScv2ftsGoMqxhw&part=snippet');
const allLists = data.data.items;
const shownList = allLists.filter(list => list.snippet.title !== 'OpenResty Con 2018');
const sortedList = ['OpenResty Tutorials', 'OpenResty Edge', 'OpenResty Showman']
Expand All @@ -71,7 +71,7 @@ async function genEnVideos() {
const {snippet, id} = item;
const {title} = snippet;
const videos = [];
const videosData = await axios.get(`https://www.googleapis.com/youtube/v3/playlistItems?key=AIzaSyC2Tenfqm3olqBB2o099SHdneXhquIYliM&playlistId=${id}&maxResults=100&part=snippet`);
const videosData = await axios.get(`https://www.googleapis.com/youtube/v3/playlistItems?key=AIzaSyANu5r1u3Zt6RKS9j9NiYsJEXvo-UBFiww&playlistId=${id}&maxResults=100&part=snippet`);

videosData.data.items.forEach(video => {
const {title, resourceId, publishedAt} = video.snippet;
Expand Down

0 comments on commit 9c4e419

Please sign in to comment.