api/pinterest: fix video parsing (#1148)

This commit is contained in:
hyperdefined 2025-03-11 13:46:25 -04:00
parent 440d039e2c
commit d77b22e98f
No known key found for this signature in database
GPG Key ID: 73E2F183DF9477C6

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,