ordinace API "upgrade" + nova sezona
This commit is contained in:
parent
8ee056680b
commit
816e8841d4
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "denim_3001",
|
"name": "denim_3001",
|
||||||
"version": "3001.62.9",
|
"version": "3001.62.10",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "denim_3001",
|
"name": "denim_3001",
|
||||||
"version": "3001.62.9",
|
"version": "3001.62.10",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discordjs/voice": "^0.19.0",
|
"@discordjs/voice": "^0.19.0",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "denim_3001",
|
"name": "denim_3001",
|
||||||
"version": "3001.62.9",
|
"version": "3001.62.10",
|
||||||
"description": "Toto je velmi kvalitní bot.",
|
"description": "Toto je velmi kvalitní bot.",
|
||||||
"repository": {
|
"repository": {
|
||||||
"url": "https://github.com/Histmy/Denim-Bot/"
|
"url": "https://github.com/Histmy/Denim-Bot/"
|
||||||
|
|||||||
@ -25,7 +25,7 @@ function createOneplayBody(payload: Record<string, any>, customData: string) {
|
|||||||
const vec = {
|
const vec = {
|
||||||
"deviceInfo": {
|
"deviceInfo": {
|
||||||
"deviceType": "web",
|
"deviceType": "web",
|
||||||
"appVersion": "1.0.18",
|
"appVersion": "R6.23",
|
||||||
"deviceManufacturer": "Unknown",
|
"deviceManufacturer": "Unknown",
|
||||||
"deviceOs": "Windows"
|
"deviceOs": "Windows"
|
||||||
},
|
},
|
||||||
@ -51,7 +51,7 @@ async function udelejOneplayRquest(cesta: string, body: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let ok = false;
|
let ok = false;
|
||||||
const res = await betterFetch(`https://http.cms.jyxo.cz/api/v3/${cesta}`, {
|
const res = await betterFetch(`https://http.cms.jyxo.cz/api/v1.6/${cesta}`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body,
|
body,
|
||||||
headers: { Authorization: token }
|
headers: { Authorization: token }
|
||||||
@ -85,11 +85,11 @@ async function executeOrdinaceFlow() {
|
|||||||
|
|
||||||
await sleep(500);
|
await sleep(500);
|
||||||
|
|
||||||
// Otevření 25. řady
|
// Otevření 26. řady
|
||||||
await udelejOneplayRquest("carousel.display", createOneplayBody({
|
await udelejOneplayRquest("carousel.display", createOneplayBody({
|
||||||
carouselId: "show:1;tab:65;parent:64;carousel:65",
|
carouselId: "show:1;tab:65;parent:64;carousel:65",
|
||||||
criteria: {
|
criteria: {
|
||||||
filterCriterias: "season:15427",
|
filterCriterias: "season:80864",
|
||||||
sortOption: "DESC"
|
sortOption: "DESC"
|
||||||
}
|
}
|
||||||
}, `{"blockId":"show:1;tab:65;parent:64;block:65"}`));
|
}, `{"blockId":"show:1;tab:65;parent:64;block:65"}`));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user