Skip to content

Commit

Permalink
Map videos property on Invidious API response (#3090)
Browse files Browse the repository at this point in the history
`invidiousAPICall` is returning an object with a `videos` property here
instead of a list.
  • Loading branch information
MarmadileManteater authored Jan 19, 2023
1 parent 9484fd3 commit 0f4bf0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/views/Subscriptions/Subscriptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})))
Expand Down

0 comments on commit 0f4bf0e

Please sign in to comment.