Remove homebrew apps from videos

This commit is contained in:
Sam Carlton 2020-12-05 22:07:17 -06:00
parent ebd7446ee0
commit 6160b78b73
2 changed files with 16 additions and 1 deletions

View file

@ -4,6 +4,10 @@ import homebrewList from '~/static/homebrew-list.json'
import { byTimeThenNull } from '~/helpers/sort-list.js'
export const allVideoList = [
...appList.sort(byTimeThenNull),
...gameList,
]
export const allList = [
...appList.sort(byTimeThenNull),

View file

@ -68,7 +68,18 @@ const storeAppLists = async function (builder) {
const savedLists = await Promise.all(listsOptions.map(saveList))
// Build and save list of videos based on app lists
.then(async lists => {
return saveList(videoListOptions, lists.flat(1))
const [
appList,
gameList
] = lists
// Build a video app list with apps and games only
const videoAppList = [
...appList,
...gameList
].flat(1)
return await saveList(videoListOptions, videoAppList)
})
console.log('Build Lists finished')