Map `videos` property on Invidious API response (#3090)

`invidiousAPICall` is returning an object with a `videos` property here
instead of a list.
This commit is contained in:
Emma 2023-01-19 10:58:04 -05:00 committed by GitHub
parent 9484fd3cb2
commit 0f4bf0e87e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ export default defineComponent({
}
invidiousAPICall(subscriptionsPayload).then(async (result) => {
resolve(await Promise.all(result.map((video) => {
resolve(await Promise.all(result.videos.map((video) => {
video.publishedDate = new Date(video.published * 1000)
return video
})))