From 0fefc4ac27a980befd047426c6069c7ba3a81a94 Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Sat, 6 Jul 2024 08:23:20 +0000 Subject: [PATCH] services/ok: fix video data extraction closes #589 --- src/modules/processing/services/ok.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/modules/processing/services/ok.js b/src/modules/processing/services/ok.js index 295d5b81..97bbcf82 100644 --- a/src/modules/processing/services/ok.js +++ b/src/modules/processing/services/ok.js @@ -20,14 +20,15 @@ export default async function(o) { }).then(r => r.text()).catch(() => {}); if (!html) return { error: 'ErrorCouldntFetch' }; - if (!html.includes(`
/) + ?.[1] + ?.replaceAll(""", '"'); + + if (!videoData) { return { error: 'ErrorEmptyDownload' }; } - let videoData = html.split(`