Switch back to normal amount of videos

This commit is contained in:
Sam Carlton 2021-01-23 12:46:57 -06:00
parent 4a042699c1
commit 2a40450a11

View file

@ -55,28 +55,28 @@ class BuildLists {
path: '/static/video-list.json', path: '/static/video-list.json',
buildMethod: async () => { buildMethod: async () => {
// return await buildVideoList( this.getAllVideoAppsList() ) return await buildVideoList( this.getAllVideoAppsList() )
const videoList = await buildVideoList( this.getAllVideoAppsList() ) // const videoList = await buildVideoList( this.getAllVideoAppsList() )
const extraVideos = [] // const extraVideos = []
const multiplier = 12 // const multiplier = 12
for (let i = 0; i < multiplier; i++) { // for (let i = 0; i < multiplier; i++) {
videoList.forEach( video => { // videoList.forEach( video => {
extraVideos.push({ // extraVideos.push({
...video, // ...video,
slug: video.slug + '-' + i, // slug: video.slug + '-' + i,
}) // })
}) // })
} // }
return new Set([ // return new Set([
...videoList, // ...videoList,
...extraVideos // ...extraVideos
].slice(0, 10 * 1000)) // ].slice(0, 10 * 1000))
}, },
} }
] ]