mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Duplicate tv endpoints for testing
This commit is contained in:
parent
9fd92fa8cf
commit
b35cc029bd
1 changed files with 21 additions and 1 deletions
|
|
@ -29,7 +29,27 @@ const listsOptions = [
|
||||||
]
|
]
|
||||||
|
|
||||||
const videoListOptions = {
|
const videoListOptions = {
|
||||||
buildMethod: buildVideoList,
|
buildMethod: async buildArgs => {
|
||||||
|
const videoList = await buildVideoList( buildArgs )
|
||||||
|
|
||||||
|
const extraVideos = []
|
||||||
|
|
||||||
|
const multiplier = 5
|
||||||
|
|
||||||
|
for (let i = 0; i < multiplier; i++) {
|
||||||
|
videoList.forEach( video => {
|
||||||
|
extraVideos.push({
|
||||||
|
...video,
|
||||||
|
slug: video.slug + '-' + i,
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
return [
|
||||||
|
...videoList,
|
||||||
|
...extraVideos
|
||||||
|
]
|
||||||
|
},
|
||||||
path: '/static/video-list.json',
|
path: '/static/video-list.json',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue