mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-18 03:08:30 +00:00
rutube: update requestJSON function
This commit is contained in:
parent
1e0627038a
commit
26358725e9
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user