mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-13 08:48:26 +00:00
api/pinterest: fix video parsing (#1148)
This commit is contained in:
parent
440d039e2c
commit
d77b22e98f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user