rutube: update requestJSON function

This commit is contained in:
wukko 2024-04-29 21:22:44 +06:00
parent 1e0627038a
commit 26358725e9
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2

View File

@ -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) {