mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Remove homebrew apps from videos
This commit is contained in:
parent
ebd7446ee0
commit
6160b78b73
2 changed files with 16 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue