mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Switch back to normal amount of videos
This commit is contained in:
parent
4a042699c1
commit
2a40450a11
1 changed files with 16 additions and 16 deletions
|
|
@ -55,28 +55,28 @@ class BuildLists {
|
|||
path: '/static/video-list.json',
|
||||
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++) {
|
||||
videoList.forEach( video => {
|
||||
extraVideos.push({
|
||||
...video,
|
||||
slug: video.slug + '-' + i,
|
||||
})
|
||||
})
|
||||
}
|
||||
// for (let i = 0; i < multiplier; i++) {
|
||||
// videoList.forEach( video => {
|
||||
// extraVideos.push({
|
||||
// ...video,
|
||||
// slug: video.slug + '-' + i,
|
||||
// })
|
||||
// })
|
||||
// }
|
||||
|
||||
return new Set([
|
||||
...videoList,
|
||||
...extraVideos
|
||||
].slice(0, 10 * 1000))
|
||||
// return new Set([
|
||||
// ...videoList,
|
||||
// ...extraVideos
|
||||
// ].slice(0, 10 * 1000))
|
||||
},
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue