From 26358725e9a012c90fdf4499e6ee1d6c16ffc79b Mon Sep 17 00:00:00 2001 From: wukko Date: Mon, 29 Apr 2024 21:22:44 +0600 Subject: [PATCH] rutube: update requestJSON function --- src/modules/processing/services/rutube.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/modules/processing/services/rutube.js b/src/modules/processing/services/rutube.js index 1e1df015..3e79a7dd 100644 --- a/src/modules/processing/services/rutube.js +++ b/src/modules/processing/services/rutube.js @@ -4,9 +4,10 @@ import { maxVideoDuration } from "../../config.js"; import { cleanString } from '../../sub/utils.js'; async function requestJSON(url) { - return await fetch(url) - .then((r) => { return r.json() }) - .catch(() => {}); + let r = await fetch(url) + .then((r) => { return r.json() }) + .catch(() => {}); + return r } export default async function(obj) {