Skip to content

Commit

Permalink
fix: don't display streams in-progress
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jan 17, 2024
1 parent 2ffd764 commit b5b167b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/api/streams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default defineCachedEventHandler(async () => {
Authorization: `Bearer ${token.access_token}`,
},
})
videos.push(...batch.data)
videos.push(...batch.data.filter(video => !video.thumbnail_url.includes('404')))
} while (batch.pagination?.cursor)

return videos
Expand Down

1 comment on commit b5b167b

@vercel
Copy link

@vercel vercel bot commented on b5b167b Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.