mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-17 22:00:00 +00:00
4 spaces!! four!!
This commit is contained in:
parent
40291c4d24
commit
f68edb51c7
1 changed files with 5 additions and 5 deletions
|
@ -2,7 +2,7 @@ import { maxVideoDuration } from "../../config.js";
|
||||||
|
|
||||||
export default async function(obj) {
|
export default async function(obj) {
|
||||||
const pinId = obj.id.split('--').reverse()[0];
|
const pinId = obj.id.split('--').reverse()[0];
|
||||||
if (!/^\d+$/.test(pinId)) return { error: 'ErrorCantGetID' };
|
if (!(/^\d+$/.test(pinId))) return { error: 'ErrorCantGetID' };
|
||||||
let data = await fetch(`https://www.pinterest.com/resource/PinResource/get?data=${encodeURIComponent(JSON.stringify({
|
let data = await fetch(`https://www.pinterest.com/resource/PinResource/get?data=${encodeURIComponent(JSON.stringify({
|
||||||
options: {
|
options: {
|
||||||
field_set_key: "unauth_react_main_pin",
|
field_set_key: "unauth_react_main_pin",
|
||||||
|
|
Loading…
Reference in a new issue