api/pinterest: fix video parsing (#1153)

fixes #1148
This commit is contained in:
hyperdefined 2025-03-12 07:35:27 -04:00 committed by GitHub
parent 440d039e2c
commit d00d94f3dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,7 @@ export default async function(o) {
const videoLink = [...html.matchAll(videoRegex)]
.map(([, link]) => link)
.find(a => a.endsWith('.mp4') && a.includes('720p'));
.find(a => a.endsWith('.mp4'));
if (videoLink) return {
urls: videoLink,