ordinace API "upgrade" + nova sezona

This commit is contained in:
Histmy 2026-01-05 16:26:41 +01:00
parent 8ee056680b
commit 816e8841d4
3 changed files with 7 additions and 7 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "denim_3001",
"version": "3001.62.9",
"version": "3001.62.10",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "denim_3001",
"version": "3001.62.9",
"version": "3001.62.10",
"license": "ISC",
"dependencies": {
"@discordjs/voice": "^0.19.0",

View File

@ -1,6 +1,6 @@
{
"name": "denim_3001",
"version": "3001.62.9",
"version": "3001.62.10",
"description": "Toto je velmi kvalitní bot.",
"repository": {
"url": "https://github.com/Histmy/Denim-Bot/"

View File

@ -25,7 +25,7 @@ function createOneplayBody(payload: Record<string, any>, customData: string) {
const vec = {
"deviceInfo": {
"deviceType": "web",
"appVersion": "1.0.18",
"appVersion": "R6.23",
"deviceManufacturer": "Unknown",
"deviceOs": "Windows"
},
@ -51,7 +51,7 @@ async function udelejOneplayRquest(cesta: string, body: string) {
}
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",
body,
headers: { Authorization: token }
@ -85,11 +85,11 @@ async function executeOrdinaceFlow() {
await sleep(500);
// Otevření 25. řady
// Otevření 26. řady
await udelejOneplayRquest("carousel.display", createOneplayBody({
carouselId: "show:1;tab:65;parent:64;carousel:65",
criteria: {
filterCriterias: "season:15427",
filterCriterias: "season:80864",
sortOption: "DESC"
}
}, `{"blockId":"show:1;tab:65;parent:64;block:65"}`));